We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62f4ff commit 9beb117Copy full SHA for 9beb117
src/channel/bounded.rs
@@ -127,11 +127,11 @@ impl<T> Sender<T> {
127
/// # Errors
128
/// - If the channel is full
129
/// - If the channel is dropped
130
- pub async fn try_send(&self, msg: T) -> Result<(), TrySendError<T>> {
+ pub fn try_send(&self, msg: T) -> Result<(), TrySendError<T>> {
131
#[cfg(async_channel_impl = "flume")]
132
let result = self.0.try_send(msg);
133
#[cfg(not(all(async_channel_impl = "flume")))]
134
- let result = self.0.try_send(msg).await;
+ let result = self.0.try_send(msg);
135
136
result
137
}
0 commit comments