AsyncHelper.RunSync Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

RunSync(Func) Executes an async System.Threading.Tasks.Task%601 method which has a void return value synchronously.
RunSync(Func>) Executes an async System.Threading.Tasks.Task%601 method which has a TResult return type synchronously

RunSync(Func)

Executes an async System.Threading.Tasks.Task%601 method which has a void return value synchronously.

public static void RunSync(Func<Task> func)

Parameters

func
System.Func

The System.Func%601 delegate to run.

RunSync(Func>)

Executes an async System.Threading.Tasks.Task%601 method which has a TResult return type synchronously

public static TResult RunSync<TResult>(Func<Task<TResult>> func)

Parameters

func
System.Func>>

The System.Func%601 delegate to run.

Returns

The result.