pub fn putOne(q: *@This(), io: Io, item: Elem) (QueueClosedError || Cancelable)!void q: *@This()io: Ioitem: Elem2442
2443
2444 pub fn putOne(q: *@This(), io: Io, item: Elem) (QueueClosedError || Cancelable)!void {
assert(try q.put(io, &.{item}, 1) == 1);
}
Appends
itemto the end of the queue, blocking if the queue is full.