tractor/examples/parallelism
Gud Boi a34aaf98d2 Add `to_actor` one-shot parallelism example
Demo both flavors of the new API in a runnable script
(auto-collected by `test_docs_examples.py`),

- the fully-implicit one-shot which boots (and tears down) the
  actor-runtime around a single `to_actor.run()` call,
- the concurrent "worker-pool-ish" prime-check pattern: a local
  `trio` task nursery scheduling one-shots against a shared
  caller-managed `an`, mirroring (in miniature) the neighboring
  `concurrent_actors_primes.py` example per issue #477.

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-07-02 12:10:27 -04:00
..
concurrent_actors_primes.py Drop now-deprecated deps on modern `trio`/Python 2025-03-16 16:06:24 -04:00
concurrent_futures_primes.py Un-hide stdlib primes example, add `trio` shim 2026-06-28 13:29:01 -04:00
single_func.py Use `.wait_for_result()` in dated examples 2026-06-28 13:29:01 -04:00
to_actor_one_shots.py Add `to_actor` one-shot parallelism example 2026-07-02 12:10:27 -04:00
we_are_processes.py Rework landing example onto the `Context` API 2026-06-28 13:29:02 -04:00