chainlet.signals module¶
-
exception
chainlet.signals.ChainExit¶ Bases:
exceptions.ExceptionTerminate the traversal of a chain
-
exception
chainlet.signals.StopTraversal¶ Bases:
exceptions.ExceptionStop the traversal of a chain
Any chain element raising
StopTraversalsignals that subsequent elements of the chain should not be visited with the current value.Raising
StopTraversaldoes 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_valueparameter was removed.