public static T End(IAsyncResult result)
        {
            Fx.AssertAndThrowFatal(result.IsCompleted, "CompletedAsyncResult<T> was not completed!");
            CompletedAsyncResultT <T> completedResult = AsyncResult.End <CompletedAsyncResultT <T> >(result);

            return(completedResult.data);
        }
예제 #2
0
 public int EndRead(IAsyncResult asyncResult)
 {
     return(CompletedAsyncResultT <int> .End(asyncResult));
 }