How can I get currentDispatcher (or Thread) on K/N...
# coroutines
b
How can I get currentDispatcher (or Thread) on K/N context?
d
Worker.current
b
Hmm, how would I convert it to dispatcher?
e
Why would you need it?
b
I want to make sure callback is executed by the same thread that registered it
Callback execution is async
e
If you directly work with callbacks, then I don’t think you need a dispatcher. Just use
Worker.current