Edoardo Luppi
08/19/2023, 6:38 PMxoangon
08/20/2023, 7:34 AMrunBlocking(<http://Dispatchers.IO|Dispatchers.IO>)
for blocking network operations
• `suspendCancellableCoroutine`: This function allows you to wrapp a callback and translate it to a suspend fun
by manually managing the underlying CancellableContinuation
Advitiay Anand
08/20/2023, 7:42 AMJohann Pardanaud
08/20/2023, 8:38 AMasCompletableFuture
to create a future-based API.
For JS, use asPromise
to create a promise-based API.Edoardo Luppi
08/20/2023, 8:50 AM