示例#1
0
 public bool EndWaitForItem(IAsyncResult result)
 {
     if (result is CompletedAsyncResult <bool> )
     {
         return(CompletedAsyncResult <bool> .End(result));
     }
     return(AsyncQueueWaiter <T> .End(result));
 }
示例#2
0
        public bool EndWaitForItem(IAsyncResult result)
        {
            CompletedAsyncResult <bool> typedResult = result as CompletedAsyncResult <bool>;

            if (typedResult != null)
            {
                return(CompletedAsyncResult <bool> .End(result));
            }

            return(AsyncQueueWaiter.End(result));
        }