Rename in readme 2

This commit is contained in:
marcelb 2025-03-28 23:20:13 +01:00
parent ce2c22676b
commit d546ca9db8

View File

@ -50,7 +50,7 @@ Time asynchronous functions
```c++ ```c++
// start periodic // start periodic
periodic inter1 ([]() { Periodic inter1 ([]() {
cout << "Interval 1" << endl; cout << "Interval 1" << endl;
}, 1000); }, 1000);
@ -202,7 +202,7 @@ auto await_all = [&] () {
void sleep_to (int _time) { void sleep_to (int _time) {
promise<void> _promise; promise<void> _promise;
delayed t( [&]() { Delayed t( [&]() {
_promise.set_value(); _promise.set_value();
}, _time); }, _time);
@ -217,7 +217,7 @@ sleep_to(3000);
void promise_reject (int _time) { void promise_reject (int _time) {
promise<void> _promise; promise<void> _promise;
delayed t( [&]() { Delayed t( [&]() {
try { try {
// simulate except // simulate except
throw runtime_error("Error simulation"); throw runtime_error("Error simulation");