AsyncHelperDoOperationAsync(ActionIAsyncContext, TaskConfig) Method
Executes the specified
operation asynchronously.
See the
Examples section of the
AsyncHelper class for details.
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static Task DoOperationAsync(
Action<IAsyncContext> operation,
TaskConfig? asyncConfig
)
Public Shared Function DoOperationAsync (
operation As Action(Of IAsyncContext),
asyncConfig As TaskConfig
) As Task
public:
static Task^ DoOperationAsync(
Action<IAsyncContext^>^ operation,
TaskConfig^ asyncConfig
)
static member DoOperationAsync :
operation : Action<IAsyncContext> *
asyncConfig : TaskConfig -> Task
- operation ActionIAsyncContext
- The operation to be executed.
- asyncConfig TaskConfig
- The configuration for the asynchronous operation.
TaskA
Task that represents the asynchronous operation, which could still be pending.