MBrace.Core


Local

Namespace: MBrace.Core

Local-parallelism combinators

Static members

Static memberDescription
Catch(workflow)
Signature: workflow:LocalCloud<'T> -> LocalCloud<Choice<'T,exn>>
Type parameters: 'T

Catch exception from given cloud workflow.

Choice(computations)
Signature: (computations:seq<LocalCloud<'T option>>) -> LocalCloud<'T option>
Type parameters: 'T

Returns a cloud computation that will execute given computations possibly in parallel and will return when any of the supplied computations have returned a successful value or if all of them fail to succeed. If a computation succeeds the rest of them are canceled. The success of a computation is encoded as an option type. This operator may create distribution.

Ignore(workflow)
Signature: workflow:LocalCloud<'T> -> LocalCloud<unit>
Type parameters: 'T

Performs a cloud computations, discarding its result

Parallel(left, right)
Signature: (left:LocalCloud<'L> * right:LocalCloud<'R>) -> LocalCloud<'L * 'R>
Type parameters: 'L, 'R

Creates a cloud computation that will execute given computations to targeted workers possibly in parallel and if successful returns the array of gathered results. This operator may create distribution. Exceptions raised by children carry cancellation semantics.

Parallel(computations)
Signature: computations:seq<LocalCloud<'T>> -> LocalCloud<'T []>
Type parameters: 'T

Creates a cloud computation that will execute given computations to targeted workers possibly in parallel and if successful returns the array of gathered results. This operator may create distribution. Exceptions raised by children carry cancellation semantics.

TryFinally(body, finalizer)
Signature: (body:LocalCloud<'T> * finalizer:LocalCloud<unit>) -> LocalCloud<'T>
Type parameters: 'T

Try/Finally combinator for monadic finalizers.

Fork me on GitHub