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.
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.
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