mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
@@ -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();
|
||||||
|
Reference in New Issue
Block a user