import { executeChild } from '@temporalio/workflow' ; export async function parentWorkflow ( ... names ) { const responseArray = await Promise . all ( names . map ( ( name ) => executeChild ( childWorkflow , { args : [ name ] , } ) ) ) ; return responseArray . join ( '\n' ) ; } export async function childWorkflow ( name ) { return `I am a child named ${ name }` ; }