Waits indefinitely for an event of type T.

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

Syntax

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

Type Parameters

T
The type of the event to wait for.

Return Value

The event matching type T when it arrives.

See Also