MockerTestBase<(Of <(<'TComponent>)>)>..::..WaitFor<(Of <(<'T>)>)> Method (Func<(Of <(<'T>)>)>)

Waits for an action.

Namespace:  FastMoq
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public static T WaitFor<T>(
	Func<T> logic
)
Public Shared Function WaitFor(Of T) ( _
	logic As Func(Of T) _
) As T
public:
generic<typename T>
static T WaitFor(
	Func<T>^ logic
)

Type Parameters

T

Parameters

logic
Type: Func<(Of <(<'T>)>)>
The action.

Return Value

T.

Exceptions


ExceptionCondition
ArgumentNullExceptionlogic