drainOwnedScopes method
Override to drain currently owned child scopes before disposal.
Implementation
@override
Future<void> drainOwnedScopes({
required Duration timeout,
required bool purgeZeroize,
}) async {
await Future.wait(
List.of(_workspaces.values).map(
(scope) =>
scope.drainAndDispose(timeout: timeout, purgeZeroize: purgeZeroize),
),
);
}