ElementFactoryRunSyncT Method |
Run the specified asynchronous method synchronously, blocking until complete.
Namespace:
SolidFire.Element
Assembly:
SolidFire.SDK (in SolidFire.SDK.dll) Version: 12.3.0.0
Syntax public static T RunSync<T>(
Func<Task<T>> asyncFunc
)
Parameters
- asyncFunc
- Type: SystemFuncTaskT
The asynchronous method to run synchronously
Type Parameters
- T
- Return type of the asynchronous method
Return Value
Type:
TThe result of the async method
See Also