Class AsyncHelper
Inheritance
System.Object
AsyncHelper
Namespace:InfinniPlatform.Threading
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public static class AsyncHelper : object
Methods
| Improve this Doc View SourceRunSync(Func<Task>)
Declaration
public static void RunSync(Func<Task> func)
Parameters
Type | Name | Description |
---|---|---|
Func<Task> | func |
RunSync<TResult>(Func<Task<TResult>>)
Declaration
public static TResult RunSync<TResult>(Func<Task<TResult>> func)
Parameters
Type | Name | Description |
---|---|---|
Func<Task<TResult>> | func |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
TResult |