Skip to content

Commit

Permalink
Update rx.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Apr 2, 2024
1 parent f009156 commit 919dcb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/rx.dart
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,9 @@ abstract class Rx {
/// ### Example
///
/// Rx.using<int, Queue<int>>(
/// () => Queue.of([1, 2, 3]),
/// (r) => Stream.fromIterable(r),
/// (r) => r.clear(),
/// resourceFactory: () => Queue.of([1, 2, 3]),
/// streamFactory: (r) => Stream.fromIterable(r),
/// disposer: (r) => r.clear(),
/// ).listen(print); // prints 1, 2, 3
static Stream<T> using<T, R>({
required FutureOr<R> Function() resourceFactory,
Expand Down

0 comments on commit 919dcb8

Please sign in to comment.