StackOverflow Questions for Tag: std-future

Adrian McCarthy
Adrian McCarthy

Reputation: 47954

Should I `std::move` from the `std::future`?

Score: 0

Views: 105

Answers: 1

Read More
BBing
BBing

Reputation: 172

How to tell std::future if std::promise exist in C++?

Score: 1

Views: 900

Answers: 2

Read More
highlander141
highlander141

Reputation: 1725

Handle async callback in MFC GUI application running in main thread from a worker thread

Score: 0

Views: 67

Answers: 1

Read More
DonBaka
DonBaka

Reputation: 455

std::future in simple words?

Score: 9

Views: 12433

Answers: 3

Read More
muaz
muaz

Reputation: 599

Does std::future keep std::async lambda alive after execution?

Score: 3

Views: 132

Answers: 1

Read More
sam
sam

Reputation: 852

std::future is set to 'empty' state c++

Score: 1

Views: 619

Answers: 1

Read More
Bubblycentaur
Bubblycentaur

Reputation: 11

How to cancel a particular worker thread spawned using std::async based on request

Score: 0

Views: 70

Answers: 1

Read More
Benjamin Buch
Benjamin Buch

Reputation: 6113

What are the type requirements for `std::future` in C++20?

Score: 4

Views: 171

Answers: 0

Read More
peidong zhou
peidong zhou

Reputation: 1

whether std::future::wait_for uses different clock(steady clock vs system clock) depends on compiler?

Score: 0

Views: 102

Answers: 1

Read More
peidong zhou
peidong zhou

Reputation: 1

std::future::wait_for returns immediately timeout while the time duration has not elapsed

Score: 0

Views: 441

Answers: 0

Read More
DomTomCat
DomTomCat

Reputation: 8569

Can a std::promise know that the respective std::future has cancelled waiting?

Score: 2

Views: 475

Answers: 2

Read More
sam
sam

Reputation: 852

Difference between directly getting a std::shared_future from std::promise and converting a std::future to std::shared_future?

Score: 0

Views: 98

Answers: 0

Read More
gaurav bharadwaj
gaurav bharadwaj

Reputation: 1771

Why std::future is different returned from std::packaged_task and std::async?

Score: 8

Views: 2378

Answers: 3

Read More
Carson
Carson

Reputation: 3101

How to create an already-resolved future

Score: 10

Views: 600

Answers: 1

Read More
Marko Taht
Marko Taht

Reputation: 1522

How to check if a std::future is empty

Score: 0

Views: 590

Answers: 0

Read More
mohammad golzar
mohammad golzar

Reputation: 23

Is it acceptable to put std::promise-s into a container to be set by the thread?

Score: 2

Views: 149

Answers: 0

Read More
Ravement
Ravement

Reputation: 13

Multithreading with std::future in C++: Accessing shared data

Score: 1

Views: 195

Answers: 1

Read More
Yakk - Adam Nevraumont
Yakk - Adam Nevraumont

Reputation: 275270

Can I execute on get my `std::future` and wait on it too?

Score: 3

Views: 1220

Answers: 2

Read More
sam
sam

Reputation: 852

Async Task Execution and Future Object Requirement for C++ Void Functions: Understanding the Need for std::future<void> Objects in C++Async

Score: 0

Views: 481

Answers: 1

Read More
devilsEye
devilsEye

Reputation: 1

Why the below program aborts when a std::vector<std::future<T>> is used.?

Score: 0

Views: 80

Answers: 2

Read More
PreviousPage 1Next