xtd 0.2.0
Loading...
Searching...
No Matches
xtd::threading::tasks::parallel Class Reference
Inheritance diagram for xtd::threading::tasks::parallel:
xtd::static_object

Definition

Provides support for creating and scheduling Task objects.

Namespace
xtd::threading::tasks
Library
xtd.core

Static Public Member Functions

static auto invoke (const xtd::array< xtd::action<> > &actions) -> void
 Executes each of the provided actions, possibly in parallel.
 
template<class collection_t>
static auto invoke (const collection_t &actions) -> void
 
template<typename ... args_t>
static auto invoke (args_t... args) -> void
 

Member Function Documentation

◆ invoke()

static auto xtd::threading::tasks::parallel::invoke ( const xtd::array< xtd::action<> > & actions) -> void
inlinestatic

Executes each of the provided actions, possibly in parallel.

Library
Switch.Core
Parameters
Anarray of Action to execute.
Remarks
This method can be used to execute a set of operations, potentially in parallel.
No guarantees are made about the order in which the operations execute or whether they execute in parallel. This method does not return until each of the provided operations has completed, regardless of whether completion occurs due to normal or exceptional termination.
Examples
This example demonstrates how to use the Invokemethod with other methods, anonymous delegates, and lambda expressions.

The documentation for this class was generated from the following file: