https://github.com/s8sg/lwan-coro-standalone
This is a direct copy of lawn CORO implementation with different Coroutine UseCase
https://github.com/s8sg/lwan-coro-standalone
asyncio coroutine-library coroutines lwan threading
Last synced: 10 months ago
JSON representation
This is a direct copy of lawn CORO implementation with different Coroutine UseCase
- Host: GitHub
- URL: https://github.com/s8sg/lwan-coro-standalone
- Owner: s8sg
- License: gpl-3.0
- Created: 2017-10-27T03:56:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-31T02:00:59.000Z (over 8 years ago)
- Last Synced: 2025-08-30T09:30:43.421Z (10 months ago)
- Topics: asyncio, coroutine-library, coroutines, lwan, threading
- Language: C
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lwan-coro-standalone
This is a direct copy of lawn CORO implementation with different Coroutine UseCase
Coro LIB Origin : https://github.com/lpereira/lwan/tree/master/src/lib
#### Build:
```bash
gcc lwan-coro-example.c lwan-array.c lwan-coro.c -o example
```
#### Run:
```bash
$ ./example
coro_new coro1 and coro2
called coro_func_foo
yield in coro_func_foo
called coro_func_bar
yield in coro_func_bar
continue in coro_func_foo
continue in coro_func_bar
coro_free coro1 and coro2
```