Oliver Foggin 6b42ceda4b Made public
2023-12-14 17:57:40 +00:00
2023-12-14 17:57:40 +00:00
2023-12-14 17:44:02 +00:00
2023-12-14 17:48:20 +00:00
2023-12-14 17:48:20 +00:00
2023-12-14 17:52:57 +00:00

Composable Subscriber

A higher order reducer for subscribing to AsyncStream from your app.

Any dependency that returns an AsyncStream can be subscribed to in the following way.

Reduce {
 // your usual reducer here
}
.subscribe(on: \.some.trigger.action, to: myDependency.strem, with: \.some.response.action)

There is a requirement that the AsyncStream returns the same type as the response action takes.

Description
No description provided
Readme 62 KiB
Languages
Swift 100%