2023-06-18 09:58:04 +00:00
|
|
|
#import <Streams/QueuingStrategy.idl>
|
2023-04-02 14:22:11 +00:00
|
|
|
#import <Streams/WritableStreamDefaultWriter.idl>
|
|
|
|
|
2023-10-25 15:27:19 +00:00
|
|
|
// https://streams.spec.whatwg.org/#writablestream
|
2023-04-02 22:15:53 +00:00
|
|
|
[Exposed=*, Transferable]
|
|
|
|
interface WritableStream {
|
2023-06-18 09:58:04 +00:00
|
|
|
constructor(optional object underlyingSink, optional QueuingStrategy strategy = {});
|
2023-04-02 22:15:53 +00:00
|
|
|
|
|
|
|
readonly attribute boolean locked;
|
|
|
|
|
2023-04-02 15:27:37 +00:00
|
|
|
Promise<undefined> abort(optional any reason);
|
2023-04-02 15:19:10 +00:00
|
|
|
Promise<undefined> close();
|
2023-04-02 14:22:11 +00:00
|
|
|
WritableStreamDefaultWriter getWriter();
|
2023-04-02 22:15:53 +00:00
|
|
|
};
|