3 ms·
libmill (https://github.com/sustrik/libmill https://github.com/sustrik/libmill) and libdill (https://github.com/sustrik/libdill https://github.com/sustrik/libdi
by Matthias247 3y ago
libmill (https://github.com/sustrik/libmill https://github.com/sustrik/libmill) and libdill (https://github.com/sustrik/libdill https://github.com/sustrik/libdill) should be similar and probably mentioned.
As far as I understand the differences between CspChan and libmill might be that libmill also implements lightweight tasks (coroutines) and everything that goes with it (IO multiplexing, async timers, etc), while CspChan uses OS threads?
- samuell 3y agoWas going to ask if the current implementation could be used together with libmill, but maybe they overlap a lot in functionality?
- Matthias247 3y agoI don't think you can. The library would block the libill worker thread, which would also block all other libmill coroutines from running. The libmill channels need to yield in a way where they don't block the underlying threads.