Merge branch 'nonsync_wait' of https://git.bitelex.co/marcelb/asynco into nonsync_wait

nonsync_wait
mbandic 2 months ago
commit 8b23bd6728
  1. 4
      README.md

@ -87,7 +87,7 @@ Make functions asynchronous
async_ ( []() { async_ ( []() {
sleep_for(2s); // only for simulating long duration function sleep_for(2s); // only for simulating long duration function
cout << "asynco" << endl; cout << "nonsync " << endl;
return 5; return 5;
}); });
@ -126,7 +126,7 @@ async_ ( [&classes] () {
auto a = async_ ( []() { auto a = async_ ( []() {
sleep_for(2s); // only for simulating long duration function sleep_for(2s); // only for simulating long duration function
cout << "asynco" << endl; cout << "nonsync " << endl;
return 5; return 5;
}); });

Loading…
Cancel
Save