Asynchronous programming in Qt/C++ using tasks,continuations and resumable functions.
This project is inspired by this video on channel9.
The project seeks to do async based programming in Qt/C++ using modern C++ with lambdas.
This library wraps a function into a future where the result of the function can be retrieved through the future's 3 public methods:
.get() runs the wrapped function on the current thread.
.then() registers an event to be called when the wrapped function finishes and then runs the wrapped function in a different thread.The registered function will run in the current thread.
.await() suspends the calling function and then runs the wrapped function in a separate thread and then unsuspends the calling function when the wrapped function finish running.The suspension will be done without blocking the current thread leaving free to perform other tasks.
recommending reading up on C#'s await keyword to get a sense of how .await() works.
Example use case for the Task::run().then() API can be found here. Additional example is  where an API is declared and  where the declared API is used.
Example use case of the Task::await() API is here where a function call "blocks" waiting for a result without "hanging" the entire GUI application.
A short tutorial on task/async/await as implemented in C# can be viewed from this link.
 Disscussion about this can be found on the following link among other places: http://isocpp.org/files/papers/N3558.pdf
 Disscussion about this can be found on the following link among other places: http://isocpp.org/files/papers/N3564.pdf