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