@yantrix/automata v0.6.0 • Docs
Yantrix API / @yantrix/automata / IAgnosticDataSource
Interface: IAgnosticDataSource<DataPacketType> ​
Interface for an agnostic data source that emits data packets through generator
Extends ​
TCycleIteratorInfo
Extended by ​
Type Parameters ​
• DataPacketType = any
Any data type that can be emitted by the data source.
Properties ​
id ​
ts
readonly id: string;Stable identifier for this source. Used by consumers (e.g. CoreLoop) to key the registry.
isActive() ​
ts
isActive: () => boolean;Check if data emission is active
Returns ​
boolean
True if emission is active, false otherwise
start() ​
ts
start: () => this;Start/resume data emission
Returns ​
this
This data source instance
stop() ​
ts
stop: () => this;Stop/pause data emission
Returns ​
this
This data source instance