quinn icon indicating copy to clipboard operation
quinn copied to clipboard

API that enables atomic writing

Open gretchenfrage opened this issue 5 months ago • 0 comments

As noted in Discord, the WebTransport API suggests that we are likely to want to implement, in some form or another, an API that allows a user to attempt to atomically write a byte chunk of a user-controlled length:

The atomicWrite method will reject if the chunk given to it could not be sent in its entirety within the flow control window that is current at the time of sending. This behavior is designed to satisfy niche transactional applications sensitive to flow control deadlocks ([RFC9308] Section 4.4).

gretchenfrage avatar May 10 '25 19:05 gretchenfrage