You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A positive integer, when the automatic buffer allocation feature is enabled. In that case, this value specifies the size of buffer to allocate. It is undefined otherwise.
36
+
auto_allocate_chunk_size:Cell<Option<u64>>,
37
+
/// A ReadableStreamBYOBRequest instance representing the current BYOB pull request, or null if
/// - Close algorithm: A promise-returning algorithm, taking one argument (the cancel reason), which communicates a requested cancelation to the underlying source
37
-
/// - Pull algorithm: A promise-returning algorithm that pulls data from the underlying source
41
+
/// - Cancel algorithm: A promise-returning algorithm, taking one argument (the cancel reason), which communicates a requested cancelation to the underlying byte source
42
+
/// - Pull algorithm: A promise-returning algorithm that pulls data from the underlying byte source
38
43
algorithms:DomRefCell<ControllerAlgorithms>,
39
-
/// A boolean flag indicating whether the stream has been closed by its underlying source, but still has chunks in its internal queue that have not yet been read
44
+
/// A boolean flag indicating whether the stream has been closed by its underlying byte source, but still has chunks in its internal queue that have not yet been read
40
45
close_requested:Cell<bool>,
41
-
/// A boolean flag set to true if the stream’s mechanisms requested a call to the underlying source's pull algorithm to pull more data, but the pull could not yet be done since a previous call is still executing
46
+
/// A boolean flag set to true if the stream’s mechanisms requested a call to the underlying byte source's pull algorithm to pull more data,
47
+
/// but the pull could not yet be done since a previous call is still executing
42
48
pull_again:Cell<bool>,
43
-
/// A boolean flag set to true while the underlying source's pull algorithm is executing and the returned promise has not yet fulfilled, used to prevent reentrant calls
49
+
/// A boolean flag set to true while the underlying byte source's pull algorithm is executing and the returned promise has not yet fulfilled, used to prevent reentrant calls
44
50
pulling:Cell<bool>,
45
-
/// A list representing the stream’s internal queue of chunks
/// A list of readable byte stream queue entries representing the stream’s internal queue of chunks
46
55
#[ignore_malloc_size_of = "Defined in mozjs"]
47
56
queue:DomRefCell<VecDeque<Heap<JSVal>>>,
48
-
/// A boolean flag indicating whether the underlying source has finished starting
57
+
/// A boolean flag indicating whether the underlying byte source has finished starting
49
58
started:Cell<bool>,
50
-
/// A number supplied to the constructor as part of the stream’s queuing strategy, indicating the point at which the stream will apply backpressure to its underlying source
59
+
/// A number supplied to the constructor as part of the stream’s queuing strategy, indicating the point at which the stream will apply backpressure to its underlying byte source
51
60
strategy_highwatermark:Cell<f64>,
52
-
/// An algorithm to calculate the size of enqueued chunks, as part of the stream’s queuing strategy
53
-
///
54
-
/// If missing use default value (1) per https://streams.spec.whatwg.org/#make-size-algorithm-from-size-function
Copy file name to clipboardExpand all lines: components/script/dom/readablestreamdefaultcontroller.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ use crate::script_runtime::JSContext as SafeJSContext;
33
33
pubstructReadableStreamDefaultController{
34
34
reflector_:Reflector,
35
35
/// All algoritems packed together:
36
-
/// - Close algorithm: A promise-returning algorithm, taking one argument (the cancel reason), which communicates a requested cancelation to the underlying source
36
+
/// - Cancel algorithm: A promise-returning algorithm, taking one argument (the cancel reason), which communicates a requested cancelation to the underlying source
37
37
/// - Pull algorithm: A promise-returning algorithm that pulls data from the underlying source
38
38
algorithms:DomRefCell<ControllerAlgorithms>,
39
39
/// A boolean flag indicating whether the stream has been closed by its underlying source, but still has chunks in its internal queue that have not yet been read
0 commit comments