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

Use Option<Duration> for timeouts. #55

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

Conversation

reitermarkus
Copy link

A timeout of None means that operations will block indefinitely. This is similar to what std::net::TcpStream does.

@reitermarkus reitermarkus force-pushed the optional-timeout branch 8 times, most recently from 87bc421 to 1bc266a Compare December 25, 2018 00:31
@reitermarkus
Copy link
Author

@dcuddeback, ping.

1 similar comment
@reitermarkus
Copy link
Author

@dcuddeback, ping.

@dcuddeback
Copy link
Owner

@dcuddeback, ping.

Please don't do that. I'm busy, and there's no reason your PR should receive priority over anything else on my agenda.

@reitermarkus
Copy link
Author

@dcuddeback, please forgive me for being a nag. I don't want preferential treatment, I just hate PRs going stale. I can understand you're busy, I'd volunteer as a collaborator on this project if you'd like, to take some workload off of you.

@detly
Copy link

detly commented Jul 8, 2021

Into<Option<Duration>> might be better, because then callers can still just pass a Duration if they want a timeout. See eg. Calloop's run() method.

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.

3 participants