larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/internal/http2/Http2Stream.java
private boolean closeInternal(ErrorCode errorCode, @Nullable IOException errorException) {
    assert (!Thread.holdsLock(this));
    synchronized (this) {
      if (this.errorCode != null) {
        return false;
      }
      if (source.finished && sink.finished) {
        return false;
      }
      this.errorCode = errorCode;
      this.errorException = errorException;
      notifyAll();
    }
    connection.removeStream(id);
    return true;
  }
/** Returns true if this stream was closed. */
Returns true if this stream was closed.
Returns true if this stream was closed .
private boolean closeInternal(ErrorCode errorCode, @Nullable IOException errorException) {
    assert (!Thread.holdsLock(this));
    synchronized (this) {
      if (this.errorCode != null) {
        return false;
      }
      if (source.finished && sink.finished) {
        return false;
      }
      this.errorCode = errorCode;
      this.errorException = errorException;
      notifyAll();
    }
    connection.removeStream(id);
    return true;
  }
private boolean closeInternal ( ErrorCode errorCode , @ Nullable IOException errorException ) { assert ( ! Thread . holdsLock ( this ) ) ; synchronized ( this ) { if ( this . errorCode != null ) { return false ; } if ( source . finished && sink . finished ) { return false ; } this . errorCode = errorCode ; this . errorException = errorException ; notifyAll ( ) ; } connection . removeStream ( id ) ; return true ; }
Returns true if this stream was closed.
Returns true if this stream was closed .