disposeAsync

external fun disposeAsync(): Promise<Void>(source)

Disposes each resource in the stack in the reverse order that they were added.

MDN Reference