async

abstract fun <R : JsAny> async(type: OutputType<R>, onUpdate: OnUpdateCallback? = definedExternally): Promise<R>(source)

Prepare the content in the asked type.

Return

Promise the promise of the result.

Parameters

type

the type of the result.

onUpdate

a function to call on each internal update.