Interface IJobAwaiter
Namespace: IndicoV2-Extensions-Jobs
Assembly: IndicoV2-Abstractions-dll
public interface IJobAwaiter
Methods
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
Prediction results
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
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>
Updated about 1 year ago