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

Waits for an action.

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

Syntax


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

Type Parameters

T

Parameters

logic
Type: Func<(Of <(<'T>)>)>
The action.
timespan
Type: TimeSpan
The timespan, defaults to 4 seconds.

Return Value

T.

Exceptions


ExceptionCondition
ArgumentNullExceptionlogic