but at some point I want to check for cancellation and run the code in the correct coroutine context present in scope, but I want to avoid dispatch if dispatcher is immediate and it was already called in the right thread
b
bezrukov
04/03/2023, 8:32 PM
If you are only interested in cancellation, you may use