Registers an asynchronous cleanup callback on the currently active scope, if there is one.
The asynchronous cleanup callback to register.
Promise which resolves immediately after registration, or after immediate cleanup when the active scope is already disposed.
Registers an asynchronous cleanup callback on the currently active scope, if there is one.