OpenCellAsync<C extends Cell, L extends Cell, I extends Signal, O extends Signal> class

An asynchronous executor for OpenCell with enhanced signal processing capabilities.

Extends CellAsync to provide:

  • Type-safe asynchronous signal reception
  • Full access to open cell functionality
  • Thread-safe operation with reactive preservation

Key Features:

  • receptor(): Asynchronously processes signals with output type safety
  • Maintains all OpenCell capabilities in async context
  • Composes with other async operations via Future API

Example Usage:

final openCell = OpenCell<MyCell, MyLink, InputSig, OutputSig>(...);
final asyncCell = openCell.async;

// Async signal processing:
final output = await asyncCell.receptor(inputSignal);

// Chained operations:
asyncCell.receptor(input)
  .then((out) => asyncCell.apply(process, [out]))
  .catchError(...);
Inheritance
Implemented types

Constructors

OpenCellAsync.new(OpenCell<C, L, I, O> cell)
Creates an async executor for an OpenCell
const

Properties

async OpenCellAsync<C, L, I, O>
Creates an async variant for modifiable operations
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
modifiable Iterable<Function>
Returns an iterable containing modifiable functions.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
test TestObject<Cell>
Gets the test object associated with the cell.
no setterinherited
unmodifiable Cell
Creates an unmodifiable view of this cell.
no setterinherited

Methods

apply(Function function, List? positionalArguments, [Map<Symbol, dynamic>? namedArguments]) Future
Asynchronously applies a function through the cell's validation system.
inherited
deputy({covariant TestObject<Cell>? test, covariant MapObject? mapObject}) OpenCell<C, L, I, O>
Creates an Deputy cell from an existing Cell instance with reduced permissions.
override
Links another cell to this one
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receptor(I signal) Future<O?>
Asynchronously processes a signal through the cell's receptor.
override
toString() String
A string representation of this object.
inherited
Unlinks a previously linked cell
override

Operators

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