4 ms·
If you plan on implementing anything with libtask, take a look at the version with epoll support. https://github.com/jamwt/libtask https://github.com/jamwt/lib
by fintler 13y ago
If you plan on implementing anything with libtask, take a look at the version with epoll support.
https://github.com/jamwt/libtask https://github.com/jamwt/libtask
Mongrel2 is also an excellent example of how libtask can be used.
On another note, alts and chans are underrated in libtask -- I wish the documentation promoted them more. To get an idea of what alts look like when used with a few chans, take a look at keyboardthread() from acme:
http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/acme/acme.c http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/acme/ac...
It's just... beautiful.