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_send
method will immediately return an error if the receiver is destroyed.You can get a timeout by doing this:
where
handle
is atokio::runtime::Handle
you got from your runtime.