Thread
The class Thread has the following methods:
this method returns the Thread's attached DATA
Returns | |
DATA | the date |
this method starts the Thread
Returns | |
void | - |
this method stops the Thread
Input | |
eventsConsumer | Type: (events) => void required a function that will receive all the events until the thread was stopped |
Returns | |
void | |
this method will call the callback passed as param when the thread's state changes
Input | |
cb | Type: (onNext: Context<ThreadFlow<DATA>, 'nextData', { nextData: REDUCERS }>) required the callback to invoke |
Returns | |
void | |