Bump.AsyncPriorityQueue.peek_timed Reference Manual
Packages
bump-0.1
Bump
AsyncPriorityQueue
waiting_threads
AsyncPriorityQueue
foreach
offer
peek
peek_timed
poll
poll_timed
consumer_shortage
peek_timed
Description:
public
G
peek_timed
(
TimeSpan
wait = -
1
)
Peek on the queue, blocking until timeout or data is received
Parameters:
wait
the duration to wait. 0 for no waiting, -1 to wait forever
Returns:
the data, or null if there was no data