func bind() -> AnyEffect<Action> {
return .merge(
.sequence { send in
for await value in values {
send(Action.response(value))
}
},
.sequence { send in
for await value in otherValues {
send(Action.response(value))
}
}
)
}
Checklist ✅
[x] If it's a new feature, have appropriate unit tests been added?
[x] If the changes affect existing functionality, please verify whether the above information has been appropriately described.
Related Issues 💭
Description 📝
Add a bind function to receive global events.
Additional Notes 📚
Checklist ✅