Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
danappelxx
on May 16, 2019
|
parent
|
context
|
favorite
| on:
Protothreads: Lightweight Stackless Threads in C
Libdill IO is nonblocking and calls returns a channel. Reading from the channel yields the coroutine, similar to the await statement in some languages.
signa11
on May 16, 2019
[â]
oh cool ! does that happen for read/write to non-socket fdâs as well ?
danappelxx
on May 16, 2019
|
parent
[â]
Yeah, see the file descriptors section on this page
http://libdill.org/documentation.html
signa11
on May 17, 2019
|
root
|
parent
[â]
i did before posting here, and could not find anything that might have indicated that i.e. non-socket-fd reads end up with coroutine like semantics...
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: