QlikConnectionAwaitResponse Method (Task, String, CancellationToken) |
Await the arrival of a response for a method call to the engine.
Namespace: Qlik.Engine.CommunicationAssembly: Qlik.Engine (in Qlik.Engine.dll) Version: 2.1.0.0+Build:7.origin/release/ms13
Syntax public static void AwaitResponse(
Task task,
string methodName,
CancellationToken cancellationToken
)
Public Shared Sub AwaitResponse (
task As Task,
methodName As String,
cancellationToken As CancellationToken
)
Parameters
- task
- Type: System.Threading.TasksTask
The task returned by a call to SendAsync. - methodName
- Type: SystemString
The name of the method that the task corresponds to. - cancellationToken
- Type: System.ThreadingCancellationToken
The token used to synchronize shutdown events.
Exceptions Exception | Condition |
---|
TimeoutException | Throws a timeout exception if a response has not been received
within the current timeout. |
See Also