AsyncQueue.timeoutPop

void * timeoutPop(ulong timeout)

Pops data from the queue. If the queue is empty, blocks for timeout microseconds, or until data becomes available.

If no data is received before the timeout, null is returned.

Parameters

timeoutthe number of microseconds to wait

Returns

data from the queue or null, when no data is

received before the timeout.