AsyncContext

class AsyncContext(interrupted: Boolean)

AsyncContext provides states of async

It is recommended that async processes check for interruptions periodically.

Since

5.0.20

Parameters

interrupted

Interruption status. (True: Interrupted, False: Not interrupted)

Constructors

Link copied to clipboard
constructor(interrupted: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns interrupted or not. Async operation implementors should poll this periodically and return early when true to support cooperative cancellation.