asDeferred |
Converts this AsyncCompletion to an instance of Deferred. The AsyncCompletion is cancelled when the resulting deferred is cancelled. fun AsyncCompletion.asDeferred(): Deferred<Unit> |
await |
Awaits for completion of the AsyncCompletion without blocking a thread. suspend fun AsyncCompletion.await(): Unit |