Struct std::sync::Oneshot

struct Oneshot<T> { ... }

A one-shot channel (future).

Oneshot can be used to send a single value between threads. Multiple threads can wait on it and they will all receive the same value.

Example

Methods

impl Oneshot<T> { ... }