menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Technology News

>

What `kotl...
source image

Medium

4w

read

395

img
dot

What `kotlin.coroutines.Continuation` is

  • kotlin.coroutines.Continuation is the low-level mechanism by which suspending functions pause and resume their execution.
  • When a coroutine suspends, it saves a Continuation that knows how to get everything going again.
  • Most developers seldom write code that directly manipulates Continuation objects. They use high-level constructs like suspend functions, coroutineScope, withContext, async, or await.
  • kotlin.coroutines.Continuation encapsulates the suspended state, links to the coroutine’s context, and provides a method to continue execution with a final result or error.

Read Full Article

like

23 Likes

For uninterrupted reading, download the app