example concurrent foreach

This commit is contained in:
lda
2026-05-23 21:57:50 +07:00 Verified
parent e09d714c72
commit 88b17f6806
4 changed files with 204 additions and 133 deletions
+6
View File
@@ -228,6 +228,12 @@ step with item-local child lineages:
In async execution, admitted async item node handlers may run at the same time.
Run-state mutation, tracing, and barrier commits remain deterministic.
See `examples/authoring_concurrent_foreach.py` for a runnable example covering:
- sync concurrent foreach with `item_error={"action": "collect", ...}`;
- async item-node batching with deterministic output order;
- `item_error` as a string, mapping, or `ForeachItemErrorPolicy` object.
## Deprecated `route`
`route()` is a compatibility shim: