Constructor
new mw.eventLog.BackgroundQueue([intervalSecs])
#
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
intervalSecs |
number |
optional |
30 | seconds to wait before calling callbacks |
- Source:
Methods
flush(fn)
#
Add a callback to the queue, to be flushed when the timer runs out.
Parameters:
Name | Type | Description |
---|---|---|
fn |
function | Callback to add |
- Source:
Add a callback to the queue, to be flushed when the timer runs out.
flush()
#
Manually execute all the callbacks, same as if the timer runs out.
- Source:
Manually execute all the callbacks, same as if the timer runs out.