diff options
| author | Tyge Løvset <[email protected]> | 2023-05-08 18:45:24 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-08 18:45:24 +0200 |
| commit | 2f11c7cf36690a1493344189b6a011c26ee58a9b (patch) | |
| tree | 5ca6eba321563ec661277b5247271ebc828e9b59 /docs/ccommon_api.md | |
| parent | f8f544d8f5b805b9749f1e06fd7c1875b6115d48 (diff) | |
| download | STC-modified-2f11c7cf36690a1493344189b6a011c26ee58a9b.tar.gz STC-modified-2f11c7cf36690a1493344189b6a011c26ee58a9b.zip | |
coroutine cco_await_* and cco_yield_* changes.
Diffstat (limited to 'docs/ccommon_api.md')
| -rw-r--r-- | docs/ccommon_api.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index fb29d642..512aeb80 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -361,12 +361,12 @@ To resume the coroutine from where it was suspended with *cco_yield()*, simply c | | `cco_end(ret)` | End coroutine block and return ret | | | `cco_yield()` | Yield/suspend execution | | | `cco_yield(ret)` | Yield/suspend execution and return ret | -| | `cco_yield_sub(subco, call)` | Yield if subco not done after call | -| | `cco_yield_sub(subco, call, ret)` | Yield with ret if subco alive after call | -| | `cco_await(promise)` | Wait/suspend until promise is true | -| | `cco_await(promise, ret)` | Wait/suspend with ret value | -| | `cco_await_sub(subco, call)` | Wait/suspend until subco call is done | -| | `cco_await_sub(subco, call, ret)` | Wait/suspend with ret on subco call done | +| | `cco_yield_at(co, call)` | Yield next in co call, if not done | +| | `cco_yield_at(co, call, ret)` | Yield next in co call with ret | +| | `cco_await(promise)` | Await/suspend until promise is true | +| | `cco_await(promise, ret)` | Await/suspend with ret value | +| | `cco_await_done(co, call)` | Await for co call to finish | +| | `cco_await_done(co, call, ret)` | Await for co call to finish with ret | | | Semaphores: | | | | `csem` | Semaphore type | | | `cco_await_sem(sem)` | Await for the semaphore count > 0 | |
