Skip to content

Commit

Permalink
Document panics
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Oct 31, 2023
1 parent 00f4667 commit 97fc45f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/readable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ impl ReadableStream {
/// This can be used to adapt various kinds of objects into a readable stream,
/// such as an [array], an [async generator] or a [Node.js readable stream][Readable].
///
/// **Panics** if `ReadableStream.from()` is not supported by the browser,
/// or if the given object is not a valid iterable or async iterable.
///
/// [iterable]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterable_protocol
/// [async iterable]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols
/// [array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
Expand Down

0 comments on commit 97fc45f

Please sign in to comment.