chainlet.signals module¶
-
exception
chainlet.signals.
ChainExit
¶ Bases:
exceptions.Exception
Terminate the traversal of a chain
-
exception
chainlet.signals.
StopTraversal
¶ Bases:
exceptions.Exception
Stop the traversal of a chain
Any chain element raising
StopTraversal
signals that subsequent elements of the chain should not be visited with the current value.Raising
StopTraversal
does not mean the element is exhausted. It may still produce values regularly on future traversal. If an element will never produce values again, it should raiseChainExit
.Note: This signal explicitly affects the current chain only. It does not affect other, parallel chains of a graph. Changed in version 1.3: The
return_value
parameter was removed.