CancelToken class

A cooperative cancellation flag a Capability polls across async gaps — set when the host unmounts. The engine never force-kills a ServiceCapability body; the capability checks isCancelled and unwinds. It is ALSO the mounted-probe by proxy: cancelled ⟺ the host disposed, so an uncancelled token means the tree context is still safe to read.

Constructors

CancelToken()

Properties

hashCode int
The hash code for this object.
no setterinherited
isCancelled bool
Whether the owning host has unmounted (the capability should unwind).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Marks cancelled (called by the host on dispose).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited