docs(lib): Add a description to the oneshot-senders

This commit is contained in:
Benedikt Peetz 2024-02-18 13:37:34 +01:00
parent 80c6dd4057
commit e205ea4625
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ pub mod macros {
}
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::{
mem,
sync::mpsc::{self, RecvError, SendError, TryRecvError},