Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 504 Bytes

README.md

File metadata and controls

23 lines (21 loc) · 504 Bytes

thread

A C++17 library providing asynchronous execution and persistent threading.

Installation (optional)

$ make install

Usage

Include the header.

#include <concur>                // if you've installed the library
#include "./include/concur.hpp"  // if you haven't

Initiate an async instance.

con::Async async;

Run async functions, wait for their result whenever.

async([](int x){ return x * 2; }, 44);
async([](int x){ return x * 2; }, 44).get();