Thread
The class Thread has the following methods:
getData
this method returns the Thread's attached DATA
Returns | |
DATA | the date |
start
this method starts the Thread
Returns | |
void | - |
stop
this method stops the Thread
Input | |
eventsConsumer | Type: a function that will receive all the events until the thread was stopped |
Returns | |
void |
next
this method will call the callback passed as param when the thread's state changes
Input | |
cb | Type: the callback to invoke |
Returns | |
void |