Interface AsyncToken<T>
-
- Type Parameters:
T
- The expected data type of the result of the operation
public interface AsyncToken<T>
Token that manages waiting for an asynchronous operation to finish. All asynchronous operations in this SDK return a token. This token can be used to wait on the calling thread until the operation has finished.
IMPORTANT: Since this waits on the calling thread, this should not be called on the main thread. Otherwise, this will block the main thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncResult<T>
waitToComplete()
This method waits on the calling thread until the operation has finished executing.
-
-
-
Method Detail
-
waitToComplete
AsyncResult<T> waitToComplete()
This method waits on the calling thread until the operation has finished executing. After which, it will return the expected result object of the operation called.- Returns:
- AsyncResult the expected result of the operation
-
-