function will execute a passed in function passing in the supplied Disposable
and then calling the dispose method on the Disposable when execution of the
function is done.
Usage Example:
awaitusing(newImplementsDisposable(), async (disposable) => { awaitdisposable.interact(); // do stuff... }); // `disposable.dispose` is called here
function will execute a passed in function passing in the supplied
Disposable
and then calling thedispose
method on theDisposable
when execution of the function is done. Usage Example: