Skip to main content

utility:producer consumer for each

Version: 0.0.0

Description

Allows to write a loop over operators by connecting data to iterate and by requesting the incrementally output merged.The chain of Operators are split into a first part: the producers and a second part: the consumers. These 2 parts will run asynchronously on 2 threads.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
producer_consumer_iterableqThe result of the make_producer_consumer_for_each_iterator operator.
Pin 3
Required
forwardoutput of the last operators of the workflow

Outputs

OutputNameExpected type(s)Description
Pin 0empty
Pin 3output

Configurations

NameExpected type(s)Default valueDescription
evaluate_inputs_before_runboolfalseIf this option is set to true, all input pins of the operator will be evaluated before entering the run method to maintain a correct Operator status.
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: utility

Plugin: core

Scripting name: producer_consumer_for_each

Full name: utility.producer_consumer_for_each

Internal name: producer_consumer_for_each

License: None

Changelog

  • Version 0.0.0: Initial release.