tractor/examples
Tyler Goodlet 7db5739143 Add our version of the std lib's "worker pool"
This is a draft of the `tractor` way to implement the example from the
"processs pool" in the stdlib's `concurrent.futures` docs:

https://docs.python.org/3/library/concurrent.futures.html#processpoolexecutor-example

Our runtime is of course slower to startup but once up we of course get
the same performance, this confirms that we need to focus some effort
not on warm up and teardown times.  The mp forkserver method definitely
improves startup delay; rolling our own will likely be a good hot spot
to play with.

What's really nice is our implementation is done in approx 10th the code ;)

Also, do we want offer and interface that yields results as they arrive?

Relates to #175
2021-02-21 14:08:23 -05:00
..
debugging Drop warning level logging assert(s) 2020-12-26 15:45:55 -05:00
__main__.py Better document the window's gotcha solution in test code 2020-02-09 14:59:22 -05:00
a_trynamic_first_scene.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
actor_spawning_and_causality.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
actor_spawning_and_causality_with_daemon.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
asynchronous_generators.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
concurrent_actors_primes.py Add our version of the std lib's "worker pool" 2021-02-21 14:08:23 -05:00
concurrent_futures_primes.py Add our version of the std lib's "worker pool" 2021-02-21 14:08:23 -05:00
full_fledged_streaming_service.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
multiple_streams_one_portal.py Add an example which breaks shielded proc waits 2021-01-14 18:21:26 -05:00
remote_error_propagation.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
service_discovery.py Add tests for all docs examples 2020-02-09 02:01:39 -05:00