Waits for an event of type T. If timeout is reached first, returns null.

Namespace: BaseLib
Assembly: BaseLib (in BaseLib.dll) Version: 0.5.0.0

Collapse imageSyntax

C#
T WaitFor<T>(
	double timeout
)
where T : EventBase

Parameters

timeout
Type: System..::..Double
The timeout value, in seconds.

Collapse imageType Parameters

T
The type of event to wait for.

Return Value

The event matching type T or null if no event arrives before timeout.

Collapse imageSee Also