3 ms·
I am more familiar with the "futures and promises" approach. https://en.wikipedia.org/wiki/Futures_and_promises https://en.wikipedia.org/wiki/Futures_and_promis
by partycoder 10y ago
I am more familiar with the "futures and promises" approach.
https://en.wikipedia.org/wiki/Futures_and_promises https://en.wikipedia.org/wiki/Futures_and_promises
- adrianratnapala 10y agoIt 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.