Member Junction
    Preparing search index...

    Action that executes multiple actions in parallel

    // Execute multiple actions in parallel
    await runAction({
    ActionName: 'Parallel Execute',
    Params: [{
    Name: 'Actions',
    Value: [
    {
    ActionName: 'Web Search',
    Params: { Query: 'latest news' }
    },
    {
    ActionName: 'Get Weather',
    Params: { Location: 'New York' }
    },
    {
    ActionName: 'Get Stock Price',
    Params: { Symbol: 'AAPL' }
    }
    ]
    }]
    });

    // Wait for first result only
    await runAction({
    ActionName: 'Parallel Execute',
    Params: [{
    Name: 'Actions',
    Value: [api1Action, api2Action, api3Action]
    }, {
    Name: 'WaitForAll',
    Value: false
    }]
    });

    // With timeout and error handling
    await runAction({
    ActionName: 'Parallel Execute',
    Params: [{
    Name: 'Actions',
    Value: actions
    }, {
    Name: 'ContinueOnError',
    Value: true
    }, {
    Name: 'Timeout',
    Value: 10000
    }, {
    Name: 'MaxConcurrent',
    Value: 5
    }]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods