summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/coroutines/cotasks1.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/coroutines/cotasks1.c')
-rw-r--r--misc/examples/coroutines/cotasks1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/coroutines/cotasks1.c b/misc/examples/coroutines/cotasks1.c
index 27999ccf..e4afbe2b 100644
--- a/misc/examples/coroutines/cotasks1.c
+++ b/misc/examples/coroutines/cotasks1.c
@@ -88,7 +88,7 @@ int main(void)
struct consume_items consume = {.n=5};
int count = 0;
- cco_block_on(consume_items(&consume, &produce))
+ cco_call_blocking(consume_items(&consume, &produce))
{
++count;
//cco_sleep(0.001);