| Name | Type | Description |
|---|---|---|
*names | str | Default: () |
Iterate multiple projections in arrival order, yielding (name, item).
Items are ordered by a monotonic push stamp assigned when each
transformer pushes into its StreamChannel. This gives strict
arrival ordering across projections, unlike round-robin.
Each named channel is locked for the duration of iteration and
released when the generator completes, is closed, or raises.
Channels cannot be subscribed concurrently ā use .tee(n) if
you need fan-out.
Example:
for name, item in run.interleave("messages", "values"):
if name == "messages":
print("msg:", item)
else:
print("val:", item)Projection keys to interleave. Must match keys in
extensions.