pub struct ParallelNode { /* private fields */ }Expand description
The ParallelNode execute all its children concurrently, but not in separate threads!
Even if this may look similar to ReactiveSequence, this Control Node is the only one that can have multiple children RUNNING at the same time.
The Node is completed either when the THRESHOLD_SUCCESS or THRESHOLD_FAILURE number is reached (both configured using ports).
If any of the thresholds is reached, and other children are still running, they will be halted.
Note that threshold indexes work as in Python: https://www.i2tutorials.com/what-are-negative-indexes-and-why-are-they-used/
Therefore -1 is equivalent to the number of children.
Implementations§
Source§impl ParallelNode
impl ParallelNode
pub fn create_node(name: impl AsRef<str>, config: NodeConfig) -> TreeNode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelNode
impl RefUnwindSafe for ParallelNode
impl Send for ParallelNode
impl Sync for ParallelNode
impl Unpin for ParallelNode
impl UnsafeUnpin for ParallelNode
impl UnwindSafe for ParallelNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more