SyncTaskRunTResult(FuncTaskTResult) Method

Runs a task synchronously on the current TaskScheduler.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static TResult Run<TResult>(
	Func<Task<TResult>> func
)

Parameters

func  FuncTaskTResult
Delegate method to be executed.

Type Parameters

TResult
Return value type.

Return Value

TResult
The result of the completed task.

See Also