Nathaniel J. Smith
Nathaniel J. Smith
@oremanj's `as_completed` here might be interesting as the basis for a `gather` equivalent: https://gitter.im/python-trio/general?at=5ad186345d7286b43a29af53 Maybe examples of testing and debugging would be good too. (Testing might just refer to the...
#527 is a common question; we should have something for it.
As mentioned in #537, a UDP example would be good. This would also be a good way to demonstrate using `trio.socket` directly. The example in that comment thread is kind...
It would be good to have an example that discusses the subtleties of `aclose`: in general, cancellation means "stop what you're doing ASAP and clean up". But if what you're...
Interaction between `__del__` and trio is another thing we should discuss somewhere. (It's very tricky. The obvious problem is that `__del__` isn't an async method, so it can't `await` anything....
Channel examples – we might move the ones that are currently in `reference-core.rst` here. It would also be good to have an example of `tee`, if only to have something...
Using a buffered memory channel to implement a fixed-size database connection pool
Re previous message: @ziirish wrote a first draft: https://gist.github.com/ziirish/ab022e440a31a35e8847a1f4c1a3af1d
Zero-downtime upgrade (via socket activation, socket passing, unix-domain socket + atomic rename?)
example of how to "hide" a nursery inside a context manager, using `@asynccontextmanager` (cf https://github.com/python-trio/trio/issues/882#issuecomment-457962244) [Edit: And also, [what to do in case you need to support `async with some_object:...