Class AsyncHelpers
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking.Logging
Assembly: cs.temp.dll.dll
Syntax
public static class AsyncHelpers
Methods
RunSync(Func<Task>)
Execute's an async Task method which has a void return value synchronously
Declaration
public static void RunSync(Func<Task> task)
Parameters
Type | Name | Description |
---|---|---|
Func<Task> | task | Task method to execute |
RunSync<T>(Func<Task<T>>)
Execute's an async TaskT
method which has a T return type synchronously
Declaration
public static T RunSync<T>(Func<Task<T>> task)
Parameters
Type | Name | Description |
---|---|---|
Func<Task<T>> | task | Task |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | Return Type |