Concurrent
public protocol Concurrent : Async
Concurrent describes asynchronous operations that can be started concurrently.
-
Runs 2 computations in parallel and combines their results using the provided function.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
-
Runs 3 computations in parallel and combines their results using the provided function.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
-
Runs 2 computations in parallel and returns the result of the first one finishing.
Declaration
Parameters
fa1st computation
fb2nd computation
Return Value
A computation with the result of the first computation that finished.
-
parZip(_:_:)Extension method -
parZip(_:_:_:)Extension methodRuns 3 computations in parallel and tuples their results.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:)Extension methodRuns 4 computations in parallel and tuples their results.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:)Extension methodRuns 5 computations in parallel and tuples their results.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:)Extension methodRuns 6 computations in parallel and tuples their results.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:_:)Extension methodRuns 7 computations in parallel and tuples their results.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
fh7th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:_:_:)Extension methodRuns 8 computations in parallel and tuples their results.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
fh7th computation.
fi8th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:_:_:_:)Extension methodRuns 9 computations in parallel and tuples their results.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
fh7th computation.
fi8th computation.
fj9th computation.
Return Value
A computation that describes the parallel execution.
-
parMap(_:_:_:_:_:)Extension methodRuns 4 computations in parallel and combines their results using the provided function.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
-
parMap(_:_:_:_:_:_:)Extension methodRuns 5 computations in parallel and combines their results using the provided function.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
-
parMap(_:_:_:_:_:_:_:)Extension methodRuns 6 computations in parallel and combines their results using the provided function.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
-
parMap(_:_:_:_:_:_:_:_:)Extension methodRuns 7 computations in parallel and combines their results using the provided function.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
fh7th computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
-
parMap(_:_:_:_:_:_:_:_:_:)Extension methodRuns 8 computations in parallel and combines their results using the provided function.
Declaration
Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
fh7th computation.
fi8th computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
-
parMap(_:_:_:_:_:_:_:_:_:_:)Extension methodRuns 9 computations in parallel and combines their results using the provided function.
Declaration
Swift
static func parMap<A, B, C, D, E, G, H, I, J, Z>( _ fa: Kind<Self, A>, _ fb: Kind<Self, B>, _ fc: Kind<Self, C>, _ fd: Kind<Self, D>, _ fe: Kind<Self, E>, _ fg: Kind<Self, G>, _ fh: Kind<Self, H>, _ fi: Kind<Self, I>, _ fj: Kind<Self, J>, _ f: @escaping (A, B, C, D, E, G, H, I, J) -> Z) -> Kind<Self, Z>Parameters
fa1st computation.
fb2nd computation.
fc3rd computation.
fd4th computation.
fe5th computation.
fg6th computation.
fh7th computation.
fi8th computation.
fj9th computation.
fCombination function.
Return Value
A computation that describes the parallel execution.
Install in Dash
Concurrent Protocol Reference