diff options
| author | Tyge Løvset <[email protected]> | 2023-05-31 17:38:49 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-31 17:38:49 +0200 |
| commit | c23a90112ffc50ed5977874ec31cf4fd3d4afd9b (patch) | |
| tree | 16213ecba2a5a4af8a2b0b18fb293605be702232 /docs | |
| parent | 7dd28530c93b907cc26064232c5498e45e838723 (diff) | |
| download | STC-modified-c23a90112ffc50ed5977874ec31cf4fd3d4afd9b.tar.gz STC-modified-c23a90112ffc50ed5977874ec31cf4fd3d4afd9b.zip | |
Simplified coroutine API. Removed unneeded cco_await_coro() and cco_yield_coro().
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ccommon_api.md | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index beaad7e9..fc4f196b 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -373,17 +373,12 @@ To resume the coroutine from where it was suspended with *cco_yield()*, simply c |:----------|:-------------------------------------|:----------------------------------------| | | `cco_final:` | Label for cleanup in coroutine | | | `cco_return` | Early return from the coroutine (no arg) | -| `bool` | `cco_suspended(co)` | Is coroutine in suspended state? | | `bool` | `cco_done(co)` | Is coroutine done? | | | `cco_routine(co) { ... }` | The coroutine closure | | | `cco_yield()` | Yield/suspend execution | | | `cco_yield(ret)` | Yield/suspend execution and return ret | -| | `cco_yield_coro(co, call)` | Yield at co call if it is suspended | -| | `cco_yield_coro(co, call, ret)` | Yield at co call with ret if suspended | | | `cco_await(promise)` | Await/suspend until promise is true | | | `cco_await(promise, ret)` | Await/suspend with ret value | -| | `cco_await_coro(co, call)` | Await for co call to finish | -| | `cco_await_coro(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 | |
