@bodil/core - v0.4.9
    Preparing search index...

    Namespace async

    Async utilities.

    Classes

    AbortablePromise

    A promise that can be aborted using an AbortSignal.

    Emitter

    A multi consumer event broadcaster, like an EventTarget but async and without named events.

    Type Aliases

    AbortableExecutor

    Executor function for an AbortablePromise.

    SchedulerAPI

    Variables

    SchedulerAPI

    Functions

    awaitFrame

    Return a promise which will resolve when the next animation frame happens.

    defer

    Call the provided function at the soonest opportunity after the current task yields.

    isAbortError

    Test whether a value is an AbortError.

    sleep

    Return a promise that will resolve after the specified number of milliseconds or Temporal.Duration.