WorkItemExecutionMonitor
Namespace: MBrace.Runtime.Utils
Provides a mechanism for cooperative work item execution monitoring.
Constructors
Constructor | Description |
new()
Signature: unit -> WorkItemExecutionMonitor
|
CompiledName: |
Instance members
Instance member | Description |
Task
Signature: Task<unit>
|
CompiledName: |
TriggerCompletion()
Signature: unit -> unit
|
|
TriggerFault(e)
Signature: e:exn -> unit
|
Static members
Static member | Description |
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 |