Click or drag to resize

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
C#
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: T
The result of the async method
See Also