disposeAsync method
Dispose the context: cancel all in-flight computations. Awaits completion of all active cleanup futures before returning. Subsequent cell writes are no-ops.
Implementation
Future<void> disposeAsync() async {
_disposed = true;
final pending = <Future<void>>[];
for (final effect in List<_AsyncEffectHandle>.of(_effects)) {
pending.add(effect.disposeAsync());
}
await Future.wait(pending);
_dependents.clear();
_effects.clear();
}