Skip to content

@yantrix/automata v0.1.0Docs


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

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