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
/** * See [[https://streams.spec.whatwg.org/#reader-cancel §3.4.4.2. cancel(reason)]] * of whatwg Streams spec. * * If the reader is active, the cancel method behaves the same as that for * the associated stream. When done, it automatically releases the lock. * * //todo determine type of reason*/defcancel(reason: Any): js.Promise[Any] = js.native //not actually sure what the return type is here/** * See [[https://streams.spec.whatwg.org/#reader-read 3.4.4.3. read()]] of * whatwg Stream spec. * * The read method will return a promise that allows access to the next chunk * from the stream’s internal queue, if available. If the chunk does become * available, the promise will be fulfilled with an object of the form { * value: theChunk, done: false }. If the stream becomes closed, the * promise will be fulfilled with an object of the form { value: undefined, * done: true }. If the stream becomes errored, the promise will be * rejected with the relevant error. If reading a chunk causes the queue to * become empty, more data will be pulled from the underlying source.*/defread(): js.Promise[Chunk[T]] = js.native
Scalafmt:
/** * See [[https://streams.spec.whatwg.org/#reader-cancel §3.4.4.2. cancel(reason)]] * of whatwg Streams spec. * * If the reader is active, the cancel method behaves the same as that for * the associated stream. When done, it automatically releases the lock. * * //todo determine type of reason*/defcancel(reason: Any): js.Promise[Any] =
js.native //not actually sure what the return type is here/** * See [[https://streams.spec.whatwg.org/#reader-read 3.4.4.3. read()]] of * whatwg Stream spec. * * The read method will return a promise that allows access to the next chunk * from the stream’s internal queue, if available. If the chunk does become * available, the promise will be fulfilled with an object of the form { * value: theChunk, done: false }. If the stream becomes closed, the * promise will be fulfilled with an object of the form { value: undefined, * done: true }. If the stream becomes errored, the promise will be * rejected with the relevant error. If reading a chunk causes the queue to * become empty, more data will be pulled from the underlying source.*/defread(): js.Promise[Chunk[T]] = js.native
I would like the input to look like this:
/** * See [[https://streams.spec.whatwg.org/#reader-cancel §3.4.4.2. cancel(reason)]] * of whatwg Streams spec. * * If the reader is active, the cancel method behaves the same as that for * the associated stream. When done, it automatically releases the lock. * * //todo determine type of reason*/defcancel(reason: Any): js.Promise[Any] =
js.native //not actually sure what the return type is here/** * See [[https://streams.spec.whatwg.org/#reader-read 3.4.4.3. read()]] of * whatwg Stream spec. * * The read method will return a promise that allows access to the next chunk * from the stream’s internal queue, if available. If the chunk does become * available, the promise will be fulfilled with an object of the form { * value: theChunk, done: false }. If the stream becomes closed, the * promise will be fulfilled with an object of the form { value: undefined, * done: true }. If the stream becomes errored, the promise will be * rejected with the relevant error. If reading a chunk causes the queue to * become empty, more data will be pulled from the underlying source.*/defread(): js.Promise[Chunk[T]] = js.native
Using
0.1.1
default
The text was updated successfully, but these errors were encountered:
Original:
Scalafmt:
I would like the input to look like this:
Using
The text was updated successfully, but these errors were encountered: