You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
- A common use case for the predicate passed to `repeat_until` is simply to
repeat until the argument passed is equal to some value. e.g.
```cpp
auto s = some_sender | async::repeat_until([] (auto const &x) { return x == 42; });
```
or, even more simply,
```cpp
auto s = some_sender |
async::repeat_until([] (std::convertible_to<bool> auto const &x) { return x; });
```
and this is quite verbose.
Solution:
- Allow `repeat_until` to take a value as a terse way to express this.
```cpp
auto s = some_sender | async::repeat_until(42);
```
or
```cpp
auto s = some_sender | async::repeat_until(true);
```
Notes:
- As for `repeat_until`, so for `retry_until` and `periodic_until`.
0 commit comments