Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for receive timeouts #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JamesWrigley
Copy link
Member

This is implemented by using two tasks writing to a channel. The first task that
finishes defines whether the receive call timed out or not.

Inspired by: #87 (comment).

Fixes #87.

This is implemented by using two tasks writing to a channel. The first task that
finishes defines whether the receive call timed out or not.
@JamesWrigley
Copy link
Member Author

On second thoughts, maybe it's better to have a TimeoutError type instead of an ErrorException?

@JamesWrigley
Copy link
Member Author

(bump)

@ViralBShah
Copy link
Contributor

@JamesWrigley Sorry that these PRs have languished. As I mentioned elsewhere - I am happy to give you commit access here, if that would be helpful. It would certainly help maintain the package better.

@vtjnash
Copy link
Contributor

vtjnash commented Oct 20, 2022

Timeouts don’t generally make sense in Julia since it is already non-blocking at the Task level, so they just usually introduce complicated data races

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set timeout of a socket?
3 participants