Dim func As Func(Of T) Dim timeoums As Integer Dim sleepms As Integer Dim returnValue As T returnValue = Waiter.WaitUntil(func, timeoums, sleepms)