Hadoop.Client/Jobs/IHadoopClientExtensions.cs
/// <summary>
/// Method that waits for a jobDetails to complete.
/// </summary>
/// <param name="client">The Hadoop client to use.</param>
/// <param name="job">The jobDetails to wait for.</param>
/// <param name="duration">The duration to wait before timing out.</param>
/// <param name="cancellationToken">
/// The Cancellation Token for the request.
/// </param>
/// <returns>An awaitable task that represents the action.</returns>
Method that waits for a jobDetails to complete.
Method that waits for a jobDetails to complete .
public static async Task<JobDetails> WaitForJobCompletionAsync(
            this IHadoopJobClient client, JobCreationResults job, TimeSpan duration, CancellationToken cancellationToken)
        {
            return await client.WaitForJobCompletionAsync(job.JobId, duration, cancellationToken);
        }
public static async Task < JobDetails > WaitForJobCompletionAsync ( this IHadoopJobClient client , JobCreationResults job , TimeSpan duration , CancellationToken cancellationToken ) { return await client . WaitForJobCompletionAsync ( job . JobId , duration , cancellationToken ) ; }
Method that waits for a jobDetails to complete.
Method that waits for a jobDetails to complete .
An awaitable task that represents the action.
An awaitable task that represents the action .
IHadoopJobClient
this
job
JobCreationResults
The jobDetails to wait for.
The jobDetails to wait for .
duration
TimeSpan
The duration to wait before timing out.
The duration to wait before timing out .
cancellationToken
CancellationToken
The Cancellation Token for the request.
The Cancellation Token for the request .
client
The Hadoop client to use.
The Hadoop client to use .