NativeTurn class
One native operation on a conversation — a streamed send or a rewind — from its start until native has posted its end.
Constructors
Properties
-
cancellationIssued
→ Future<
void> -
no setter
-
cancellationRequested
→ Future<
void> -
no setter
- cancelRequested ↔ bool
-
A stop was asked for: stopGeneration(), close(), or the consumer
cancelling its subscription.
getter/setter pair
- cancelRetryRunning ↔ bool
-
getter/setter pair
- cancelSent ↔ bool
-
Whether this turn has issued a native cancellation. Serialized platforms
issue exactly one; other platforms may retry while prefill runs.
getter/setter pair
- closedUnderConsumer ↔ bool
-
The conversation's session or model was closed while this ran, before
anyone asked to stop it: a streamed send then ends with a
StateError, not as a reply that merely stopped early.
getter/setter pair
- deleteWhenEnded ↔ bool
-
The conversation was released while this ran; it is deleted at the end.
getter/setter pair
-
ended
→ Future<
NativeTurnEnd> -
Completes once native has posted the end and, if NativeTurns.release
was called meanwhile, the conversation has been deleted.
no setter
- hasEnded → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeCallInFlight ↔ bool
-
The spawned send entry point has not returned yet. On platforms that
permit concurrent cancellation, retries cover native prefill tasks that
may be created after an earlier
cancel_processcall.getter/setter pair - nativeStartPending ↔ bool
-
A streamed send has been registered in Dart but its spawned isolate is
still inside
litert_lm_conversation_send_message_stream. LiteRT-LM forbids overlapping calls on one conversation, so NativeTurns.cancel retains a stop until the platform's safe native-entry boundary.getter/setter pair - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited