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:
Xinye Tao
2025-10-01 10:38:04 +02:00
committed by GitHub
co-authored by Xinye Tao
parent 95edd8515e
commit 35470bfc6e
+4 -1
View File
@@ -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
///