| RequestEventRunAsyncTaskT Method |
Executes the supplied task in a separate thread.
Namespace:
OBCOM.NetSwitchLib.Servers
Assembly:
OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax public void RunAsyncTask<T>(
Func<T> task,
TaskResultHandler<T> handler
)
Public Sub RunAsyncTask(Of T) (
task As Func(Of T),
handler As TaskResultHandler(Of T)
)
Parameters
- task
- Type: SystemFuncT
The task to be executed in a separate thread.
- handler
- Type: OBCOM.NetSwitchLib.ServersTaskResultHandlerT
Called when the task returns a value or throws an exception.
Type Parameters
- T
-
The type of the value returned by the task.
Exceptions See Also