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); }
public int EndRead(IAsyncResult asyncResult) { return(CompletedAsyncResultT <int> .End(asyncResult)); }