NapiAbortSignal class abstract base

Shared registration ownership; host adapters provide fresh state and hooks.

Implemented types

Constructors

NapiAbortSignal()

Properties

aborted → bool
Whether cancellation has been requested, read from the actual host signal.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

armAbort() → void
Installs the adapter's one weak host listener on the current owner.
disarmAbort() → void
Removes that host listener immediately, without notifying business code.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyAbort() → void
Called only from a valid owner; false host events do not notify listeners.
onAbort(void listener()) → void Function()
Registers one notification and returns an idempotent removal function.
override
throwIfAborted() → void
Throws the original JavaScript abort reason through the binding.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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