device.pending(): number;
The device.pending method will return the number of requests in the queue waiting to be fullfilled by the device.
None.
if (device.pending() > 10) { // ruh-roh }