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 Lwt_switch.with_switch #256

Merged
merged 1 commit into from
Jun 20, 2016
Merged

Add Lwt_switch.with_switch #256

merged 1 commit into from
Jun 20, 2016

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Jun 20, 2016

I find myself writing this helper every time I use Lwt. Seems like it should be in the library.

I also updated the example to use it. Technically, it's not quite the same since the example now turns off the switch on success too, but that seems like a reasonable thing to do anyway.

@aantron aantron merged commit 5c42bc8 into ocsigen:master Jun 20, 2016
@aantron
Copy link
Collaborator

aantron commented Jun 20, 2016

Looks good, thanks!

@talex5 talex5 deleted the with_switch branch June 20, 2016 19:44
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