Hi! Can you please tell me how to delay the respon...
# multiplatform
v
Hi! Can you please tell me how to delay the response? On coroutines, I would do something similar.
stackoverflow 1
It works )
Copy code
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
    if value == range {
        onValueChangeFinished(value.map { Double($0) })
    }
}
c
If you are using combine you can use debounce
debounce(for: .milliseconds(500), scheduler: DispatchQueue.main)