Struct std::Oneshot
One value, sent once, received once.
Fields
ONESHOT_*
Methods
Store the value and wake the receiver. 1 on success, 0 if a value was already sent or the channel was closed.
No value will come: the receiver gets null.
Closes it, releases the receiver's waker, and drops a value nobody received. Nothing may use the channel (or a future from it) after.
The receive future: Ready(some(v)), or Ready(null) once closed.
The value if it has arrived (and takes it), else null.