Skip to content

Conversation

@ronag
Copy link
Member

@ronag ronag commented Jun 16, 2020

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@ronag
Copy link
Member Author

ronag commented Jun 16, 2020

@jasnell ping

this.emit('ready');
// TODO (fix): What happens on failure? We still need to
// invoke the callback somehow? Change signature of kSetHandle
// to (err, handle)?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note this comment

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly. The failure conditions have not been fully tested yet.

// internal handle has been created. The QuicStream object
// is still minimally usable before this but any data
// written will be buffered until kSetHandle is called.
this[kSetHandle] = (handle) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really dislike the property pattern for these functions. I'd rather [kSetHandle] be a function on the class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants