new Subscriber(process, callback, target, manifestId, time, onceOnly)
Parameters:
Name | Type | Description |
---|---|---|
process |
function | function to get the result from |
callback |
function | callback to be invoked when "process" function returns anything |
target |
number | window target id |
manifestId |
string | manifest identifier |
time |
number | time in miliseconds how often the callback should be invoked |
onceOnly |
boolean | if set to true the callback will be invoked once only and subsriber will be removed |
Methods
getId() → {string}
Returns:
- subscriber identifier
- Type
- string
getManifestId() → {string}
Returns:
- manifest identifier
- Type
- string
onFinish(callback) → {void}
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | function to be invoked when "process" function returns anything and when "onceOnly" is set to true |
Returns:
- Type
- void
remove() → {void}
Returns:
- Type
- void