onAwait

abstract val onAwait: SelectClause1<T> (source)

Clause for select expression of await suspending function that selects with the deferred value when it is resolved. The select invocation fails if the deferred value completes exceptionally (either fails or it cancelled).