This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23720 - Make it able to issue multiple write()s on a Stream without waiting for completion
Summary: Make it able to issue multiple write()s on a Stream without waiting for compl...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Streams API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Takeshi Yoshino
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 07:53 UTC by Takeshi Yoshino
Modified: 2013-12-05 19:47 UTC (History)
2 users (show)

See Also:


Attachments

Description Takeshi Yoshino 2013-11-05 07:53:47 UTC
To bridge existing unstoppable APIs such as WebSocket to the Stream style APIs, we need to buffer write requests. We can address this by e.g.:
- allowing multiple write()s without waiting for completion. maybe by having a queue inside a Stream
- using infinite size Stream

Figure out which is the best thing to do.
Comment 1 Takeshi Yoshino 2013-11-07 21:16:54 UTC
Done in preview ver https://dvcs.w3.org/hg/streams-api/raw-file/tip/preview.html

Multiple write()s are allowed. Producer code can issue write()s sequentially and synchronously.
Comment 2 Takeshi Yoshino 2013-12-05 19:47:17 UTC
Preview ver merged into ED