Function that disposes something.
Static
createStatic
fromCombine many disposable-likes into one. Use this method when having objects with a dispose function which are not instances of Disposable.
Rest
...disposableLikes: { Objects that have at least a dispose
-function member.
Returns a new disposable which, upon dispose, will dispose all provided disposables.
Creates a new Disposable calling the provided function on dispose.