w3c / webtransport

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

Add more conditions for garbage collection #587

Closed nidhijaju closed 9 months ago

nidhijaju commented 10 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 9 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.