w3c / webtransport

WebTransport is a web API for flexible data transport
https://w3c.github.io/webtransport/
Other
838 stars 51 forks source link

Add more conditions for garbage collection #587

Closed nidhijaju closed 7 months ago

nidhijaju commented 8 months ago

This PR allows more aggressive garbage collection, by not allowing it only if there is a lock on readable streams or if there is a relevant promise that is still being awaited.

Fixes https://github.com/w3c/webtransport/issues/560.


Preview | Diff

saschanaz commented 7 months ago

try to avoid dependencies on promises

Indeed Gecko cannot depend on promises being awaited as such promises don't really send any signal when such await happen. I wonder what other implementations do.