Appearance
Home › Overview › ink
Runs a computation in a separate thread, returning a default value until its result is ready.
Compute
type Compute<T, A...> = (become: (T) -> (), A...) -> T
async
async<T, A...>(s: types.Scope, default: T, compute: Compute<T, A...>, ...: A...): T