mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
sync: clarify bounded channel panic behavior (#7641)
Signed-off-by: Xinye Tao <[email protected]> Co-authored-by: Xinye Tao <[email protected]>
This commit is contained in:
@@ -127,7 +127,10 @@ pub struct Receiver<T> {
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// Panics if the buffer capacity is 0.
|
||||
/// Panics if the buffer capacity is 0, or too large. Currently the maximum
|
||||
/// capacity is [`Semaphore::MAX_PERMITS`].
|
||||
///
|
||||
/// [`Semaphore::MAX_PERMITS`]: crate::sync::Semaphore::MAX_PERMITS
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user