@kayahr/scope
    Preparing search index...

    Function onAsyncDispose

    • Registers an asynchronous cleanup callback on the currently active scope, if there is one.

      Parameters

      • cleanup: () => PromiseLike<void>

        The asynchronous cleanup callback to register.

      Returns Promise<void>

      Promise which resolves immediately after registration, or after immediate cleanup when the active scope is already disposed.