mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Add and use only rpl::start_with_*() methods.
This commit is contained in:
@@ -66,7 +66,7 @@ public:
|
||||
std::is_assignable_v<Type, OtherType>>>
|
||||
variable(rpl::producer<OtherType> &&stream) {
|
||||
std::move(stream)
|
||||
| start([this](auto &&data) {
|
||||
| start_with_next([this](auto &&data) {
|
||||
*this = std::forward<decltype(data)>(data);
|
||||
}, _lifetime);
|
||||
}
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
variable &operator=(rpl::producer<OtherType> &&stream) {
|
||||
_lifetime.destroy();
|
||||
std::move(stream)
|
||||
| start([this](auto &&data) {
|
||||
| start_with_next([this](auto &&data) {
|
||||
*this = std::forward<decltype(data)>(data);
|
||||
}, _lifetime);
|
||||
}
|
||||
|
Reference in New Issue
Block a user