9b4d72b6f049e45bb760bb1eaa9c4a1da0c40775
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(to: myDependency.stream, on: \.some.trigger.action, with: \.some.response.action)
There is a requirement that the AsyncStream returns the same type as the response action takes.
Description
Languages
Swift
100%