Nito.Disposables.AsyncDisposable
A disposable that executes a delegate when disposed.
Creates a new disposable that executes dispose when disposed.
Creates a new disposable that executes dispose when disposed.
Creates a new disposable that executes dispose when disposed.
Adds a delegate to be executed when this instance is disposed. If this instance is already disposed or disposing, then dispose is executed immediately.
If this method is called multiple times concurrently at the same time this instance is disposed, then the different dispose arguments may be disposed concurrently, even if ExecuteSerially was specified.