tractor/examples/parallelism
Gud Boi d8af5f125a Port non-debugging examples off `run_in_actor`
4 example scripts of the #477 removal sweep, each exercised by
`test_docs_examples.py`,

- `actor_spawning_and_causality.py`: the simplest possible
  `to_actor.run()` demo — private call-scoped nursery, block on
  and print the one-shot's result.
- `remote_error_propagation.py`: blocking `to_actor.run(an=n)`
  raises the boxed `AssertionError` in the caller's task,
  cancelling the sibling daemons.
- `parallelism/single_func.py`: bg-burn a core in the parent via
  a local task-nursery while the one-shot burns (and returns
  from) a subactor.
- `a_trynamic_first_scene.py`: donny + gretchen wait on each
  *other* so their one-shots run concurrently in a local
  task-nursery against a shared `an` (mirrors the migrated
  `test_trynamic_trio`).

Gate: all 4 green via the example-runner suite.

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-07-06 12:11:39 -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 Port non-debugging examples off `run_in_actor` 2026-07-06 12:11:39 -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