summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-05-31 17:38:49 +0200
committerTyge Løvset <[email protected]>2023-05-31 17:38:49 +0200
commitc23a90112ffc50ed5977874ec31cf4fd3d4afd9b (patch)
tree16213ecba2a5a4af8a2b0b18fb293605be702232 /docs
parent7dd28530c93b907cc26064232c5498e45e838723 (diff)
downloadSTC-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.md5
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 |