How to define a timeout timer? #293
Answered
by
trevorturk
postmodern
asked this question in
Q&A
-
I noticed there's a Async::Clock primitive, but I'm curious how one would define a timeout for an async task. I want to send network traffic, wait for a response, but disconnect and re-connect if a timeout is exceeded. |
Beta Was this translation helpful? Give feedback.
Answered by
trevorturk
Dec 22, 2023
Replies: 1 comment
-
I might be misunderstanding but I think generally you're supposed to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
postmodern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I might be misunderstanding but I think generally you're supposed to use
with_timeout
on the task.