Methods
_getCallback(id) → {function}
Get the registered callback function
Parameters:
Name | Type | Description |
---|---|---|
id |
int | Callback function ID |
Returns:
Callback function
- Type
- function
_registerCallback(callback) → {int}
Register a callback function and return its ID
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | Callback funtction |
Returns:
Callback ID to pass to worker
- Type
- int