Nito.Disposables.Disposable
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.
Makes this disposable do nothing when it is disposed. Returns the actions this disposable *would* have taken; these can be passed to a new instance to transfer ownership.
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.