Blocks until all tasks in this job complete or the operation times out. The callback passed in for the heartbeat is called with the period specified by the millisecondsHeartbeat argument.
Namespace: AGI.Parallel.Client
Assembly: AGI.Parallel.Client (in AGI.Parallel.Client.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
bool WaitUntilDone(
        Guid jobId,
        int millisecondsTimeout,
        Action heartbeatCallback,
        int millisecondsHeartbeat
)
Visual Basic
Function WaitUntilDone ( _
        jobId As Guid, _
        millisecondsTimeout As Integer, _
        heartbeatCallback As Action, _
        millisecondsHeartbeat As Integer _
) As Boolean

Parameters

jobId
Type: System..::..Guid
The job id for the job to be submitted.
millisecondsTimeout
Type: System..::..Int32
The timeout (in milliseconds).
heartbeatCallback
Type: System..::..Action
The heartbeat callback.
millisecondsHeartbeat
Type: System..::..Int32
The heartbeat period (in milliseconds).

Return Value

true if job completed, false if timed-out.

Exceptions

Exception Condition
AGI.Parallel.Client..::..JobSchedulerException Thrown if client disconnects from the job scheduler.

See Also