taskID in the response.
The task runs separately, depending on the server load.
This helper method polls the Check task status API and stops if the task’s status is published.
Usage
Report incorrect code
Copy
var response = await client.WaitForTaskAsync("ALGOLIA_INDEX_NAME", 123L);
Parameters
- C#
- Dart
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Returns a timeout based on the current number of iterations.
Additional request options.
Parameter that can be used as a signal to cancel this request.
Index name where the task was executed.
Task ID to wait for.
Hide child attributes
Hide child attributes
Maximum number of retries for checking the status.
Timeout in milliseconds after which an exception is thrown.
Initial delay after which to check for the status for the first time.
Maximum delay between status checks.
Additional request options.
Index name where the task was executed.
Task ID to wait for.
Functional options to provide extra arguments.
Show available functions
Show available functions
Signature:
func(maxRetries int) iterableOptionSets the maximum number of retries for this method.Signature:
func(count int) time.DurationReturns a timeout based on the current number of iterations.Signature:
func(key string, value string) requestOptionSets extra header parameters for this request.
To learn more, see request options.Signature:
func(key string, value string) requestOptionSets extra query parameters for this request.
To learn more, see request options.Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Default:
(int retries) -> Math.min(retries * 200, 5000)Returns the time between status checks based on the current number of iterations.
By default, the initial delay is 200 milliseconds.
With every iteration, the delay increases by 200 milliseconds,
until a maximum of 5 seconds is reached.Additional request options.
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Default:
(retryCount: number) -> Math.min(retryCount * 200, 5000)Returns the time between status checks based on the current number of iterations.
By default, the initial delay is 200 milliseconds.
With every iteration, the delay increases by 200 milliseconds,
until a maximum of 5 seconds is reached.Additional request options.
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Time after which the status is checked for the first time.
This time is doubled after every check until it reaches the value set by
maxDelay.Maximum time to wait between status checks.
Additional request options.
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Number of milliseconds between status checks.
Additional request options.
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Default:
min(retry_count*0.2, 5)Returns the time between status checks based on the current number of iterations.
By default, the initial delay is 200 milliseconds.
With every iteration, the delay increases by 200 milliseconds,
until a maximum of 5 seconds is reached.Additional request options.
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Default:
[retry_count * 200, 5000].minReturns the time between status checks based on the current number of iterations.
By default, the initial delay is 200 milliseconds.
With every iteration, the delay increases by 200 milliseconds,
until a maximum of 5 seconds is reached.Additional request options.
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Default:
(retries: Long) => Math.min(retries * 200, 5000)Returns the time between status checks based on the current number of iterations.
By default, the initial delay is 200 milliseconds.
With every iteration, the delay increases by 200 milliseconds,
until a maximum of 5 seconds is reached.Additional request options.
Index name where the task was executed.
Task ID to wait for.
Maximum number of retries for checking the status.
Default:
(retryCount) -> min(TimeInterval(retryCount) * 0.2, 5)Returns the time between status checks based on the current number of iterations.
By default, the initial delay is 200 milliseconds.
With every iteration, the delay increases by 200 milliseconds,
until a maximum of 5 seconds is reached.Additional request options.