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
fa
1st computation.
fb
2nd computation.
f
Combination 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
f
Combination 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
fa
1st computation
fb
2nd 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:)
Extension methodRuns 4 computations in parallel and tuples their results.
Declaration
Parameters
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:)
Extension methodRuns 5 computations in parallel and tuples their results.
Declaration
Parameters
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:)
Extension methodRuns 6 computations in parallel and tuples their results.
Declaration
Parameters
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:_:)
Extension methodRuns 7 computations in parallel and tuples their results.
Declaration
Parameters
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
fh
7th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:_:_:)
Extension methodRuns 8 computations in parallel and tuples their results.
Declaration
Parameters
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
fh
7th computation.
fi
8th computation.
Return Value
A computation that describes the parallel execution.
-
parZip(_:_:_:_:_:_:_:_:_:)
Extension methodRuns 9 computations in parallel and tuples their results.
Declaration
Parameters
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
fh
7th computation.
fi
8th computation.
fj
9th 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
f
Combination 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
f
Combination 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
f
Combination 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
fh
7th computation.
f
Combination 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
fh
7th computation.
fi
8th computation.
f
Combination 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
fa
1st computation.
fb
2nd computation.
fc
3rd computation.
fd
4th computation.
fe
5th computation.
fg
6th computation.
fh
7th computation.
fi
8th computation.
fj
9th computation.
f
Combination function.
Return Value
A computation that describes the parallel execution.