Block method | Returns | Thread | Notes | |
---|---|---|---|---|
launch | Job | From Pool parameter | ||
async | Deferred | From Pool parameter | Use await to get result |
|
withTimeout | value from Coroutine | From Pool parameter | ||
thread | Null | New thread | Not a coroutine, but same as launch |
cancel
cancels the coroutine job execution
cancelAndJoin
cancels the job and waits for its completion
start = CoroutineStart.LAZY)
starts an async routine only when it's needed
Unconfined
- Main thread
coroutineContext
- Main thread
CommonPool
- ForkJoinPool
<specificThread>
-
isActive
set to false
if computation is cancelled
Block method | Returns | Thread | Closure Method | Notes |
---|---|---|---|---|