private void FinishCloseListeners(IAsyncResult result, bool completedSynchronously) { Exception exception = null; try { CloseCollectionAsyncResult.End(result); } catch (Exception exception2) { if (Fx.IsFatal(exception2) || completedSynchronously) { throw; } exception = exception2; } if (exception != null) { this.CallComplete(completedSynchronously, exception); } else { this.CloseInput(completedSynchronously); } }
private void FinishCloseChannelDispatchers(IAsyncResult result, bool completedSynchronously) { Exception exception = null; try { CloseCollectionAsyncResult.End(result); } catch (Exception exception2) { if (Fx.IsFatal(exception2) || completedSynchronously) { throw; } exception = exception2; } this.CallComplete(completedSynchronously, exception); }