interface should be implemented by classes that require some disposal after their use. automatic disposal is handled by using the Disposable within the using object like follows:
Disposable
using
async using(new ImplementsDisposable(), async (disp) => { await disp.doSomethingAsync(); disp.doSomethingSync();}); Copy
async using(new ImplementsDisposable(), async (disp) => { await disp.doSomethingAsync(); disp.doSomethingSync();});
where the dispose function would be called automatically upon completion or in the case of an Error
dispose
Optional
Generated using TypeDoc
interface should be implemented by classes that require some disposal after their use. automatic disposal is handled by using the
Disposable
within theusing
object like follows:where the
dispose
function would be called automatically upon completion or in the case of an Error