VoidCompletionSlot class final
A pooled void() completion callback for the no-port fallback.
Pooled and never closed: a slot is recycled for later operations, so a stale native invocation lands on a live trampoline with no pending completer and is a no-op rather than a process abort. FIFO recycling maximises the gap between "native might still call this" and "this is serving a new operation". Slots pin their isolate only while an operation is actually in flight.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nativeFunction
→ Pointer<
NativeFunction< Void Function()> > -
The pointer to hand to the C layer. Valid for the lifetime of the
process — it is never closed.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void - Returns the slot to the pool. Never closes it: the C layer may still hold nativeFunction and there is no way to ask it to forget.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- pooledCount → int
-
Idle trampoline count, for tests/diagnostics.
no setter
Static Methods
-
acquire(
Completer< void> completer) → VoidCompletionSlot -
Takes a slot that will complete
completerwhen native calls back.