DisposeScopeDisposed extension

Extends DisposeScope with disposing capabilities.

This means that your DisposeScope can dispose another DisposeScopes.

For example, you might want to have many child DisposeScopes and one parent DisposeScope. All child DisposeScopes can be canceled at once by disposing the parent DisposeScope.

on

Methods

disposedBy(DisposeScope parentDisposeScope) → void
Adds this dispose scope to parentDisposeScope.