param.reactive.reactive_ops.downstream#
- reactive_ops.downstream() Iterator[rx][source]#
Iterate over the
rxnodes that derive their value from this expression, directly or transitively, excluding itself. The reverse ofupstream(), but not a perfect mirror of its scope: a node that installed this expression as its.rx.overridesreplacement is included, same asupstream(), but a node that only reaches this one throughbind(),.rx.when,.rx.where, or aParameter(allow_refs=True)is not. The owningParameterizedkeeps a ref’d expression alive on its own, so it is deliberately excluded from the reader bookkeeping this method (anddispose()’s cascade) relies on.Readers are held weakly, so this reflects only what is currently alive, and traversal order is unspecified. As with
upstream(), useset(downstream())rather thaninon the iterator directly.- Returns:
Empty if the
.rxnamespace does not belong to anrxnode, or if nothing currently reads from it.- Return type:
Iterator[rx]
Examples
>>> import param >>> a = param.rx(1) >>> b = a.rx.pipe(lambda x: x + 1) >>> b in set(a.rx.downstream()) True