blob: c1703b75a72932c5098398e589f97f14917de2a9 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://streams.spec.whatwg.org/#rbs-controller-class-definition
[
Exposed=(Window,Worker,Worklet)
] interface ReadableByteStreamController {
readonly attribute ReadableStreamBYOBRequest? byobRequest;
readonly attribute double? desiredSize;
[CallWith=ScriptState, RaisesException] void close();
[CallWith=ScriptState, RaisesException] void enqueue(ArrayBufferView chunk);
[CallWith=ScriptState] void error(optional any e);
};