-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As discussed in #1766, there is currently no timely and reliable way to detect when a MessagePort becomes disentangled. This makes it difficult to release resources associated with ports. This adds a close event to MessagePort objects. For example, if there are two entangled ports, portA and portB, and portA is closed, the close event is fired on portB. See https://github.com/fergald/explainer-messageport-close for an explainer. Closes #1766.
- Loading branch information
Showing
1 changed file
with
64 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters