Begins asynchronous execute operation which executes a task on a specific space node. The space node it will
execute on is controlled by the routing value provided as a second parameter.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
IAsyncResult<T> BeginExecute<T>( ISpaceTask<T> task, Object routing, AsyncCallback<T> userCallback, Object stateObject )
Function BeginExecute(Of T) ( _ task As ISpaceTask(Of T), _ routing As Object, _ userCallback As AsyncCallback(Of T), _ stateObject As Object _ ) As IAsyncResult(Of T)
generic<typename T> IAsyncResult<T>^ BeginExecute( ISpaceTask<T>^ task, Object^ routing, AsyncCallback<T>^ userCallback, Object^ stateObject )
Generic Template Parameters
- T
- Type of task execution result.
Parameters
- task (ISpaceTask<(Of <(<'T>)>)>)
- The space task to execute.
- routing (Object)
- Controls routing of the task.
- userCallback (AsyncCallback<(Of <(<'T>)>)>)
- The method to be called when the asynchronous operation is complete.
- stateObject (Object)
- A user-provided object that distinguishes this particular asynchronous read request from other requests.
Return Value
An IAsyncResult that references the asynchronous execution.