/// <summary> /// Waits until the given predicate returns true. /// </summary> /// <param name="predicate"></param> /// <returns></returns> public static IEnumerator WaitUntil(Func <bool> predicate) { if (ReferenceEquals(predicate, null)) { throw new ArgumentNullException("predicate"); } return(WaitUntilLite.Create(predicate)); }
/// <summary> /// Waits until the given predicate returns true. /// </summary> /// <param name="predicate"></param> /// <returns></returns> public static IEnumerator WaitUntil(Func <bool> predicate) { return(WaitUntilLite.Create(predicate)); }