A handle to a resource that can be disposed. For example, Emitter::on returns disposables representing subscriptions.
Construction and Destruction
Construct a Disposable
An action to perform when ::dispose is called for the first time.
Perform the disposal action, indicating that the resource associated with this disposable is no longer needed.
You can call this method more than once, but the disposal action will only be performed the first time.