/// <summary> /// Polls this job for completion. /// This method just creates a <see cref="JobReference"/> and delegates to <see cref="BigqueryClient.PollJobUntilCompleted(JobReference, GetJobOptions, PollSettings)"/>. /// </summary> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <param name="pollSettings">The settings to control how often and long the job is fetched before timing out if it is still incomplete. /// May be null, in which case defaults will be supplied.</param> /// <returns>The completed job.</returns> public BigqueryJob PollUntilCompleted(GetJobOptions options = null, PollSettings pollSettings = null) => _client.PollJobUntilCompleted(Reference, options, pollSettings);
/// <summary> /// Asynchronously polls this job for completion. /// This method just creates a <see cref="JobReference"/> and delegates to <see cref="BigqueryClient.PollJobUntilCompletedAsync(JobReference, GetJobOptions, PollSettings, CancellationToken)"/>. /// </summary> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <param name="pollSettings">The settings to control how often and long the job is fetched before timing out if it is still incomplete. /// May be null, in which case defaults will be supplied.</param> /// <param name="cancellationToken">The token to monitor for cancellation requests.</param> /// <returns>A task representing the asynchronous operation. When complete, the result is /// the completed job.</returns> public Task <BigqueryJob> PollUntilCompletedAsync(GetJobOptions options = null, PollSettings pollSettings = null, CancellationToken cancellationToken = default(CancellationToken)) => _client.PollJobUntilCompletedAsync(Reference, options, pollSettings, cancellationToken);