Skip to content

Commit 2d00f0c

Browse files
committed
true async was indeed not achieved
1 parent eeba86a commit 2d00f0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/io/Stream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ namespace Aws
250250
auto impl = static_cast<AsyncInputStream *>(stream->impl);
251251
auto future = aws_future_bool_new(impl->m_allocator);
252252

253-
std::future<bool> cppFuture = impl->ReadImpl(*dest);
253+
std::shared_future<bool> cppFuture = impl->ReadImpl(*dest).share();
254254

255255
aws_future_bool_acquire(future);
256256
std::thread(
257-
[future, cppFuture = std::move(cppFuture)]() mutable
257+
[future, cppFuture]()
258258
{
259259
bool result = cppFuture.get();
260260
aws_future_bool_set_result(future, result);

0 commit comments

Comments
 (0)