MBrace.Runtime


WorkItemExecutionMonitor

Namespace: MBrace.Runtime.Utils

Provides a mechanism for cooperative work item execution monitoring.

Constructors

ConstructorDescription
new()
Signature: unit -> WorkItemExecutionMonitor

CompiledName: .ctor

Instance members

Instance memberDescription
Task
Signature: Task<unit>

CompiledName: get_Task

TriggerCompletion()
Signature: unit -> unit
TriggerFault(e)
Signature: e:exn -> unit

Static members

Static memberDescription
AwaitCompletion(tem)
Signature: tem:WorkItemExecutionMonitor -> Async<unit>

Asynchronously await completion of provided WorkItemExecutionMonitor

ProtectAsync(ctx f)
Signature: ctx:ExecutionContext -> f:Async<unit> -> unit

Runs an asynchronous computation, triggering the contextual WorkItemExecutionMonitor on uncaught exception

ProtectSync(ctx f)
Signature: ctx:ExecutionContext -> (f:(unit -> unit)) -> unit

Runs a single threaded, synchronous computation, triggering the contextual WorkItemExecutionMonitor on uncaught exception

TriggerCompletion(ctx)
Signature: ctx:ExecutionContext -> unit

Triggers task completion on the contextual WorkItemExecutionMonitor

TriggerFault(ctx, e)
Signature: (ctx:ExecutionContext * e:exn) -> unit

Triggers task fault on the contextual WorkItemExecutionMonitor

Fork me on GitHub