public bool EndWaitForItem(IAsyncResult result) { if (result is CompletedAsyncResult <bool> ) { return(CompletedAsyncResult <bool> .End(result)); } return(AsyncQueueWaiter <T> .End(result)); }
public bool EndWaitForItem(IAsyncResult result) { CompletedAsyncResult <bool> typedResult = result as CompletedAsyncResult <bool>; if (typedResult != null) { return(CompletedAsyncResult <bool> .End(result)); } return(AsyncQueueWaiter.End(result)); }