device.pending

device.pending(): number;

The device.pending method will return the number of requests in the queue waiting to be fullfilled by the device.

Parameters

None.

Example

if (device.pending() > 10) {
  // ruh-roh
}