tractor/examples/parallelism
Gud Boi e26a6160c7 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-08-19 15:41:56 -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-08-19 15:41:56 -04:00
to_actor_one_shots.py Use linked contexts in `to_actor.run()` 2026-08-18 21:44:04 -04:00
we_are_processes.py Make sub-spawn strategy toggleable in `we_are_processes` 2026-08-12 19:59:49 -04:00