AsyncHelperFromCompleted(TaskConfig) Method
Returns a task that represents an already completed operation without a result.
See the
Examples section of the
AsyncHelper class for details.
The example uses the similarly working
FromResult method.
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static Task FromCompleted(
TaskConfig? asyncConfig
)
Public Shared Function FromCompleted (
asyncConfig As TaskConfig
) As Task
public:
static Task^ FromCompleted(
TaskConfig^ asyncConfig
)
static member FromCompleted :
asyncConfig : TaskConfig -> Task
- asyncConfig TaskConfig
- The configuration for the asynchronous operation.
TaskA
Task that represents the completed operation.