Skip to content

Home › Overview › ink

async ​

Runs a computation in a separate thread, returning a default value until its result is ready.

Types ​

Compute type ​

luau
type Compute<T, A...> = (become: (T) -> (), A...) -> T

Functions ​

async ​

luau
async<T, A...>(s: types.Scope, default: T, compute: Compute<T, A...>, ...: A...): T