mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
dec8264625
commit
9d8b80cbce
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ public:
|
||||||
auto maybeError = std::optional<Error>();
|
auto maybeError = std::optional<Error>();
|
||||||
auto collecting = stream->events().start(
|
auto collecting = stream->events().start(
|
||||||
[&](Value && value) { values.push_back(std::move(value)); },
|
[&](Value && value) { values.push_back(std::move(value)); },
|
||||||
[](Error &&error) { maybeError = std::move(error); },
|
[&](Error &&error) { maybeError = std::move(error); },
|
||||||
[] {});
|
[] {});
|
||||||
std::move(initial) | start_to_stream(*stream, _lifetime);
|
std::move(initial) | start_to_stream(*stream, _lifetime);
|
||||||
collecting.destroy();
|
collecting.destroy();
|
||||||
|
|
Loading…
Add table
Reference in a new issue