An object that provides an async .dispose() method that can called only once.
.dispose()
Calling .dispose() will call the provided onDispose function only once. Any subsequent calls to .dispose() will do nothing.
onDispose
An object that provides an async
.dispose()
method that can called only once.Calling
.dispose()
will call the providedonDispose
function only once. Any subsequent calls to.dispose()
will do nothing.