A workflow-safe version of Promise.all that applies a micro-delay
before parallel execution to ensure correct sequencing of the
deterministic execution counter. Use this when you need to run
multiple durable operations concurrently within a workflow function.
In most cases, standard Promise.all works correctly for Durable
operations (e.g., parallel waitFor calls). Use Durable.workflow.all
when you observe counter-sequencing issues with complex parallel
patterns.
A workflow-safe version of
Promise.allthat applies a micro-delay before parallel execution to ensure correct sequencing of the deterministic execution counter. Use this when you need to run multiple durable operations concurrently within a workflow function.In most cases, standard
Promise.allworks correctly for Durable operations (e.g., parallelwaitForcalls). UseDurable.workflow.allwhen you observe counter-sequencing issues with complex parallel patterns.Example