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