docs(lib): Add a description to the oneshot-senders
This commit is contained in:
parent
80c6dd4057
commit
e205ea4625
|
@ -7,6 +7,8 @@ pub mod macros {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod oneshot {
|
pub mod oneshot {
|
||||||
|
//! This module provides a synced version of tokio's oneshot channel.
|
||||||
|
//! Notably this is implemented as wrapper around std's mpsc channel, which closes after one received value
|
||||||
use std::{
|
use std::{
|
||||||
mem,
|
mem,
|
||||||
sync::mpsc::{self, RecvError, SendError, TryRecvError},
|
sync::mpsc::{self, RecvError, SendError, TryRecvError},
|
||||||
|
|
Reference in New Issue