RatanShreshtha on master
appveyor: only test each Python… appveyor: Test Python 3.8 Merge pull request #48 from pqu… (compare)
pquentin on master
Move test files to tests/data (… (compare)
njsmith on bleach-spike
Support async content preloadin… Merge pull request #138 from pq… (compare)
njsmith on master
Add tests for our event loop su… Rework epoll backend to be more… Rework windows backend to survi… and 12 more (compare)
Nursery" thread, I looked into arboreal terms for "branch point", but decided against suggesting the term they use
What's the easiest way to run a bunch of tasks in a given order with at most
n in parallel.
async def main(): async with trio.open_nursery() as nursery: for i in range(1000): nursery.start_soon(slow_lookup, i)
In the example, other parts of the code are awaiting for a specific value
j to be mapped to an
i. Lower values of
i are much more likely to map to any
j, so I'd like to start them in order. Does that make sense?
await nursery.start()because with that the initial step of
slow_lookupmust tell the loop that it may proceed with the next
@njsmith yeah, that part in particular caught my eye. "interactive open source documentation" sounds great. hmm, yeah those are good points. although i do think the design of jupyter notebooks is pretty user-friendly. i think that even in the case of unfamiliarity with jupyter and low-level of experience with python, the barrier to figuring out how to use it would be fairly low.
to address all the points you made which are valid and i don't disagree with, perhaps the ~30 seconds to load up the notebook isn't that bad. i'm going assume that most users who would be interested in using these are users with less experience in trio than those who already know a lot about async python. when i read through the trio documentation, it takes me a while to get through. i think that is primarily a result of the density of topics. so this means for people like myself, i will already commit a hour or two to reading the documentation at a time.