The run an execute call started, handed to every hook.
Properties
-
data
→ Map<
Object, Object?> -
The embedder's per-run state.
no setter
-
drained
→ Future<
void> -
Completes the next time the run is drained; for good once it is revoked
(immediately when it is revoked and drained already).
no setter
- entryUri → String
-
The entry library's URI (or the entry name for a source run).
no setter
- hasEnded → bool
-
Whether the entry function's result is available.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Unique per process.
no setter
- isDrained → bool
-
Nothing the tracking policy counts is pending.
no setter
- isRevoked → bool
-
no setter
- mayUseCapabilities → bool
-
Whether code running now may use host capabilities of this run: the run
is not revoked, or the code runs on behalf of an entry accepted before
revocation (and no revoke grace has elapsed).
no setter
- pendingEntries → int
-
Accepted entries still running (async ones until their Future settles).
no setter
- pendingTasks → int
-
Tracked timers / microtasks not yet run (periodic timers until
cancelled).
no setter
-
permissions
→ Set<
Permission> -
The permissions effective for this run.
no setter
- revokeReason → Object?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zone → Zone
-
The run's execution Zone.
no setter
Methods
-
checkCapabilityUse(
[String? capability]) → void - Throws D4rtExecutionRevokedException when mayUseCapabilities is false. For capability bridges.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revoke(
[Object? reason, Duration? grace]) → void -
Revokes the run (idempotent): new native entries are refused, accepted
work continues. With
grace, once it has elapsed capability use is refused for everything of the run and tracked tasks not started are cancelled. -
revokeAndDrain(
[Object? reason, Duration? grace, Duration? timeout]) → Future< void> -
revoke, then waits for the final drain; with
timeout, fails with a TimeoutException when the run has not drained by then. -
revokePermission(
Permission permission) → void - Narrows this run's permissions while it runs.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- current → D4rtExecutionContext?
-
The run whose Zone the current code runs in.
no setter
Static Methods
-
of(
InterpreterVisitor visitor) → D4rtExecutionContext? - The run a bridge call belongs to: the run of the visitor it was given.