Creates a new disposable that calls the provided function on dispose.
Note that an asynchronous function is not awaited.
Function that disposes something.
Dispose this object.
StaticfromCombine many disposable-likes into one. You can use this method when having objects with
a dispose function which aren't instances of Disposable.
Objects that have at least a dispose-function member. Note that asynchronous
dispose-functions aren't awaited.
Function to clean up resources.
Returns a new disposable which, upon dispose, will dispose all provided disposables.
Represents a type which can release resources, such as event listening or a timer.