CoalescingGroup class
A coalescing group: one executing Mission + its subscribers (FR-002).
Exactly one mission in the group executes; all other subscribers receive the same event stream via events. The group is removed from the coalescer once the mission reaches a terminal state.
Constructors
- CoalescingGroup(Mission mission)
Properties
- cancelToken ↔ CancelToken?
-
Cancel token shared between the executor and external cancel() calls.
Created by AgentKernel.submit and stored here so AgentKernel.cancel
can trigger the same instance.
getter/setter pair
-
done
→ Future<
MissionOutcome> -
no setter
-
events
→ Stream<
MissionEvent> -
no setter
-
handles
→ List<
ResourceHandle> -
Resource handles registered by the executing mission for
cancellation-time disposal (FR-004).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCompleted → bool
-
True if complete has been called (the group has reached a terminal
state). Used by AgentKernel.submit to detect cancellation-during-
execution and return the salvaged outcome instead of the executor's
return value.
no setter
- mission → Mission
-
The executing mission.
final
-
partials
→ List<
Object> -
Partials accumulated so far (for late-subscriber replay + salvage).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscribers
→ Set<
String> -
Subscribers attached to this group. Includes the original caller.
final
Methods
-
addSubscriber(
String callerId) → void -
close(
) → Future< void> -
complete(
MissionOutcome outcome) → void -
emit(
MissionEvent event) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerHandle(
ResourceHandle handle) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited