summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.idl
blob: 25092d4070d1d68b2a028207950d407a05e90d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import <Streams/WritableStream.idl>

[Exposed=*]
interface WritableStreamDefaultWriter {
    constructor(WritableStream stream);

    readonly attribute Promise<undefined> closed;
    readonly attribute unrestricted double? desiredSize;
    readonly attribute Promise<undefined> ready;

    Promise<undefined> abort(optional any reason);
    Promise<undefined> close();
    undefined releaseLock();

    // FIXME:
    // Promise<undefined> write(optional any chunk);
};