pub fn getOne(q: *@This(), io: Io) (QueueClosedError || Cancelable)!Elem q: *@This()io: Io2486
2487
2488
2489
2490 pub fn getOne(q: *@This(), io: Io) (QueueClosedError || Cancelable)!Elem {
var buf: [1]Elem = undefined;
assert(try q.get(io, &buf, 1) == 1);
return buf[0];
}
Receives one element from the beginning of the queue, blocking if the queue is empty.