Javascript-like promises for C++ in a lightweight single header library
-
Updated
Jan 10, 2020 - C++
Javascript-like promises for C++ in a lightweight single header library
JavaScript-like Promises for C++20 with ES6 async/await semantics. Supports move (e.g. so you can wrap ASIO and avoid callback hell).
Chain instructions for mutating the fulfillment value of a not yet constructed promise.
A modern `setInterval` substitute tailored for asynchronous tasks, ensuring non-overlapping executions by skipping attempts if a previous execution is still in progress. Features graceful teardown (ideal for production apps demanding smooth resource cleanup), execution status getters, and a fixed delay between runs.
Add a description, image, and links to the js-promise topic page so that developers can more easily learn about it.
To associate your repository with the js-promise topic, visit your repo's landing page and select "manage topics."