Interface IJobAwaiter

Namespace: IndicoV2-Extensions-Jobs
Assembly: IndicoV2-Abstractions-dll

public interface IJobAwaiter

Methods

WaitPredictionReadyAsync(string, TimeSpan, CancellationToken)

Wait until Job is finished-

Task<IPredictionJobResult> WaitPredictionReadyAsync(string predictionJobId, TimeSpan checkInterval, CancellationToken cancellationToken)

Parameters

predictionJobId string

Job's Id

checkInterval TimeSpan

Interval between requests-

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<ipredictionjobresult>

Prediction results

WaitReadyAsync<TResult>(string, TimeSpan, CancellationToken)

Wait until Job is finished-

Task<TResult> WaitReadyAsync<TResult>(string jobId, TimeSpan checkInterval, CancellationToken cancellationToken = default)

Parameters

jobId string

Job's Id

checkInterval TimeSpan

Interval between requests-

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<TResult>

Type Parameters

TResult

WaitReadyAsync(string, TimeSpan, CancellationToken)

Wait until Job is finished-

[Obsolete("Use generic version of this method-")]
Task<JToken> WaitReadyAsync(string jobId, TimeSpan checkInterval, CancellationToken cancellationToken = default)

Parameters

jobId string

Job's Id

checkInterval TimeSpan

Interval between requests-

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<JToken>