Init

sealed external interface Init(source)

Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will happen if a promise is created without ever getting a continuation.

Since

v17.1.0, v16.14.0

Parameters

promise

The promise being created.

parent

The promise continued from, if applicable.

Functions

Link copied to clipboard
abstract operator fun invoke(promise: Promise<Any?>, parent: Promise<Any?>)