コード例 #1
0
        /// <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));
        }
コード例 #2
0
 /// <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));
 }