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 async timeout function #13

Merged
merged 2 commits into from
Nov 22, 2016
Merged

Add async timeout function #13

merged 2 commits into from
Nov 22, 2016

Conversation

varon
Copy link
Contributor

@varon varon commented Nov 14, 2016

I'm not sure on how you'd prefer to name it, but I tend to use it as
asyncFunc >> Async.withTimeout 500, which reads fairly well.

try
let! result = child
return Some result
with :? TimeoutException -> return None
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline after ->

@haf
Copy link
Owner

haf commented Nov 15, 2016

Nice. Will merge once nitpick is fixed.

@varon
Copy link
Contributor Author

varon commented Nov 21, 2016

Should be all good now.

@haf haf merged commit 7de7767 into haf:master Nov 22, 2016
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.

2 participants