| QlikConnectionAwaitResponseT Method (TaskT, 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
Syntaxpublic static T AwaitResponse<T>(
Task<T> task,
string methodName,
CancellationToken cancellationToken
)
Public Shared Function AwaitResponse(Of T) (
task As Task(Of T),
methodName As String,
cancellationToken As CancellationToken
) As T
Parameters
- task
- Type: System.Threading.TasksTaskT
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.
Type Parameters
- T
- The return type of the method.
Return Value
Type:
TThe value returned by the task.
Exceptions| Exception | Condition |
|---|
| TimeoutException | Throws a timeout exception if a response has not been received
within the current timeout. |
See Also