Join Slack
Powered by
How can I get currentDispatcher (or Thread) on K/N...
# coroutines
b
Big Chungus
01/13/2020, 11:40 AM
How can I get currentDispatcher (or Thread) on K/N context?
d
Dominaezzz
01/13/2020, 11:45 AM
Worker.current
b
Big Chungus
01/13/2020, 1:34 PM
Hmm, how would I convert it to dispatcher?
e
elizarov
01/13/2020, 4:25 PM
Why would you need it?
b
Big Chungus
01/13/2020, 4:38 PM
I want to make sure callback is executed by the same thread that registered it
Big Chungus
01/13/2020, 4:38 PM
Callback execution is async
e
elizarov
01/14/2020, 11:43 AM
If you directly work with callbacks, then I don’t think you need a dispatcher. Just use
Worker.current
5
Views
Open in Slack
Previous
Next