IsolateCancellationTokenAllocator class final

Host-side counter that hands out unique IsolateCancellationTokens.

One allocator per isolate host. Not thread-safe in the cross-isolate sense (the allocator lives on the host side; each allocation is on the host's isolate which is single-threaded by definition).

Properties

hashCode → int
The hash code for this object.
no setterinherited
peekNext → int
Visible for tests — returns the next id without advancing.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

next() → IsolateCancellationToken
Returns a fresh IsolateCancellationToken and advances the counter.
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