Timeout for blocking_send #5421
-
|
Hello everyone, I use If the synchronous code has called a Edit: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The You can get a timeout by doing this: where |
Beta Was this translation helpful? Give feedback.
The
blocking_sendmethod will immediately return an error if the receiver is destroyed.You can get a timeout by doing this:
where
handleis atokio::runtime::Handleyou got from your runtime.