3 ms·
unless you start doing blocking read/write...
by signa11 8y ago
unless you start doing blocking read/write...
- danappelxx 8y agoLibdill IO is nonblocking and calls returns a channel. Reading from the channel yields the coroutine, similar to the await statement in some languages.
- signa11 8y agooh cool ! does that happen for read/write to non-socket fd’s as well ?
- danappelxx 8y agoYeah, see the file descriptors section on this page http://libdill.org/documentation.html http://libdill.org/documentation.html
- signa11 8y agoi 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...