We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeba86a commit 2d00f0cCopy full SHA for 2d00f0c
source/io/Stream.cpp
@@ -250,11 +250,11 @@ namespace Aws
250
auto impl = static_cast<AsyncInputStream *>(stream->impl);
251
auto future = aws_future_bool_new(impl->m_allocator);
252
253
- std::future<bool> cppFuture = impl->ReadImpl(*dest);
+ std::shared_future<bool> cppFuture = impl->ReadImpl(*dest).share();
254
255
aws_future_bool_acquire(future);
256
std::thread(
257
- [future, cppFuture = std::move(cppFuture)]() mutable
+ [future, cppFuture]()
258
{
259
bool result = cppFuture.get();
260
aws_future_bool_set_result(future, result);
0 commit comments