From 3c3cbdc4c5d27405b0568bab00b12cb46570a2e9 Mon Sep 17 00:00:00 2001 From: Rody Davis <31253215+rodydavis@users.noreply.github.com> Date: Tue, 21 Nov 2023 08:50:51 -0800 Subject: [PATCH 1/2] Update README.md --- packages/flutter_preact_signals/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_preact_signals/README.md b/packages/flutter_preact_signals/README.md index 393b94db..18d63bc2 100644 --- a/packages/flutter_preact_signals/README.md +++ b/packages/flutter_preact_signals/README.md @@ -210,7 +210,7 @@ Futures can be converted to signals by either a method `futureToSignal` or as an ```dart import 'package:preact_signals/preact_signals.dart'; -void createStream() async* { +Stream createStream() async* { yield 1; yield 2; yield 3; From 1b3ebf9d882b68273a0461ca6a73b5b052b02a47 Mon Sep 17 00:00:00 2001 From: Rody Davis <31253215+rodydavis@users.noreply.github.com> Date: Tue, 21 Nov 2023 08:51:59 -0800 Subject: [PATCH 2/2] Update README.md --- packages/preact_signals/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/preact_signals/README.md b/packages/preact_signals/README.md index 0e760820..aac901bb 100644 --- a/packages/preact_signals/README.md +++ b/packages/preact_signals/README.md @@ -219,7 +219,7 @@ final stream = createStream(); final signal = stream.toSignal(); // or streamToSignal(stream) ``` -> This will return a sealed union based on `SignalState` that will return `SignalValue` for success, `SignalError` for errors (and `SignalTimeout` on optional timeout), and `SignalLoading`. +> This will return a sealed union based on `SignalState` that will return `SignalValue` for success, `SignalError` for errors, and `SignalLoading`. ## Example