Private
Readonly
awaitersPrivate
closePrivate
isPrivate
Readonly
resultReturns how many elements are in queue, rather than how many awaiters are there.
Negative, when more people are waiting than there is messages. Positive if there are messages waiting to be received. Zero if empty and nobody's waiting.
previously it was called length, but now this queue implements Queue interface.
Generated using TypeDoc
Queue, which can be used like queue, but also can be polled asynchronously.
Async poling makes receiver/poller wait for somebody to push that element(using append).
It can be closed, effectively flushing the queue. This causes all subscribers to receive an error rather than an element.