You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CoroutineDispatcher.invoke, a function used as such:
Dispatchers.IO {
stuff
}
is a shorter version of withContext that only works with dispatchers.
Does this function need to exist? It seems to predate structured concurrency and is so terse that it offers no indication as to its underlying behavior. Does it launch a new coroutine? Does it move the current coroutine? Does the supplied block honor structured concurrency?
I personally have a hard time finding a reason for this function to continue to exist.
kevincianfarini, FunkyMuse, veyndan, roomscape, zach-klippenstein and 5 more