Ejemplo n.º 1
0
 public bool EndWaitForItem(IAsyncResult result)
 {
     if (result is CompletedAsyncResult <bool> )
     {
         return(CompletedAsyncResult <bool> .End(result));
     }
     return(AsyncQueueWaiter <T> .End(result));
 }
Ejemplo n.º 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));
        }