Beispiel #1
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));
        }
Beispiel #2
0
        public bool EndDequeue(IAsyncResult result, out T value)
        {
            CompletedAsyncResult <T> typedResult = result as CompletedAsyncResult <T>;

            if (typedResult != null)
            {
                value = CompletedAsyncResult <T> .End(result);

                return(true);
            }

            return(AsyncQueueReader.End(result, out value));
        }
Beispiel #3
0
 public override void EndWrite(IAsyncResult result)
 {
     CompletedAsyncResult.End(result);
 }