Method Start
Start(Func<AsyncRequest<T>, Result>, ExecutionContext)
Queues a callback that needs to be executed in the given execution context, and starts the request.
Declaration
[Obsolete("Start(Func<...>, ExecutionContext) is deprecated. Use Enqueue(Func<...>) + Execute(ExecutionContext) instead.")]
public void Start(Func<AsyncRequest<T>, AsyncRequest.Result> functor = null, AsyncRequest.ExecutionContext executionContext = ExecutionContext.None)
Parameters
Type | Name | Description |
---|---|---|
Func<AsyncRequest<T>, AsyncRequest.Result> | functor | A callback that needs to be invoked |
AsyncRequest.ExecutionContext | executionContext | Execution context in which the functor needs to be invoked. viz. Threadpool, EnoOfFrame or Immediate, etc. |