Namespace

stat_monitor

stat_monitor

Monitor manager.

Methods

static add(fn) → {number}

Add a monitor.

Parameters:
Name Type Description
fn function

Monitoring function returning true when over

Monitor id

number

static check()

Check if there's at least one monitor

static remove(id)

Remove a monitor.

Parameters:
Name Type Description
id function

Monitor id

static removeAll()

Remove all monitors.