Skip to main content
Some operations, such as working with dictionaries, are application-level tasks. These tasks are asynchronous: when you send a request, Algolia adds it to a queue and runs it based on server load. The response includes a taskID property that you can use to wait for the task to complete. This helper method polls the Check application task status API and stops if the task’s status is published.

Usage

var response = await client.WaitForAppTaskAsync(123L);

Parameters

  • C#
  • Dart
  • Go
  • Java
  • JavaScript
  • Kotlin
  • PHP
  • Python
  • Ruby
  • Scala
  • Swift
taskId
long
required
Task ID to wait for.
maxRetries
int
default:50
Maximum number of retries for checking the status.
timeout
Func<int,int>
Returns a timeout based on the current number of iterations.
requestOptions
RequestOptions
Additional request options.
cancellationToken
CancellationToken
default:"default"
Parameter that can be used as a signal to cancel this request.
I