Click or drag to resize
QlikConnectionAwaitResponseT Method (TaskT, String, CancellationToken)
Await the arrival of a response for a method call to the engine.

Namespace: Qlik.Engine.Communication
Assembly: Qlik.Engine (in Qlik.Engine.dll) Version: 2.1.0.0+Build:7.origin/release/ms13
Syntax
public static T AwaitResponse<T>(
	Task<T> task,
	string methodName,
	CancellationToken cancellationToken
)

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: T
The value returned by the task.
Exceptions
ExceptionCondition
TimeoutExceptionThrows a timeout exception if a response has not been received within the current timeout.
See Also