3 ms·
It seems libdill supports channels -- blocking FIFOs. In Golang (which seems to have indirectly inspired libdill), you would implement such logic by returning
by adrianratnapala 10y ago
It seems libdill supports channels -- blocking FIFOs.
In Golang (which seems to have indirectly inspired libdill), you would implement such logic by returning a channel (future) over which is sent just one value. That result itself might be a channel and so on.
No doubt the syntax in C would not be as convenient as in some other language -- but lightweight channels that work as first-class objects are a lot like futures.