-
Notifications
You must be signed in to change notification settings - Fork 177
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
Improve lwt_pool introduction docs with examples #575
Conversation
I also just noticed there is still a reference to |
Thanks! It looks good to me. The only thing I'd optionally suggest is not having an Lwt-aware Yes, we should change threads in |
(and disregard Travis, there has been an upstream problem with Homebrew's Python for a while now, I haven't had time to look into it) |
@aantron FWIW ocaml/ocaml-ci-scripts#225 got merged to work around the python issue on macos |
Thanks @hannesm. I fixed it in |
I don't mind changing it, but I was tempted to say Lwt-aware due to the fact that the creation function, "Requests" sounds good. I think I'll also add a note saying that in case the pool is exhausted, |
Okay, so for now I have removed the "Lwt-aware" to make it more straightforward. I think the goal of the current example is to give a birds-eye view of how the common pieces may fit together in the real-world, and IMO forcing it to be a self-contained, runnable example would need us to write a mock Please let me know if you still have any concerns. I'm also fine if you're okay with merging it as-is. |
Thanks! These docs are a definite big improvement, so I want to be clear I am just talking about very minor issues with "Lwt-aware" :) Because the Lwt-awareness is not a property of |
Thank you! And yes, you made great points, I didn't think of that. While I'm at it, do you mind if I open another PR to put |
Of course not, please do :) |
I believe this change will improve the clarity of the module overview with a more flowing paragraphs and examples.
Feel free to bash this (or suggest improvements) if you disagree. 😄