tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

WritableStreamDefaultWriter.webidl (853B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * The origin of this IDL file is
      7 * https://streams.spec.whatwg.org/#default-writer-class-definition
      8 */
      9 
     10 [Exposed=*]
     11 interface WritableStreamDefaultWriter {
     12  [Throws]
     13  constructor(WritableStream stream);
     14 
     15  readonly attribute Promise<undefined> closed;
     16  [Throws] readonly attribute unrestricted double? desiredSize;
     17  readonly attribute Promise<undefined> ready;
     18 
     19  [Throws]
     20  Promise<undefined> abort(optional any reason);
     21 
     22  [NewObject]
     23  Promise<undefined> close();
     24 
     25  undefined releaseLock();
     26 
     27  [NewObject]
     28  Promise<undefined> write(optional any chunk);
     29 };