call method
Processes a signal through the receptor pipeline.
Execution flow:
- Validates signal against cell's TestObject
- Applies transformation if provided
- Propagates output to synapses
- Handles errors gracefully
Parameters:
cell
: The processing cell (required)signal
: Input signal (required)notified
: Tracks propagation to prevent loops
Sync Receptor returns a O?
the output signal or null if processing fails.
Async Receptor returns a Future<O?> for asynchronous processing.
Implementation
@override
Future<O?> call({required covariant C cell, required covariant I signal, Set<Cell>? notified}) async {
return Future<O?>(() => _receptor(cell: cell, signal: signal, notified: notified));
}