
12 Mar
2007
12 Mar
'07
1:30 p.m.
Hi Braddock, On Fri, 09 Mar 2007 09:05:42 -0500, "Braddock Gaskill" <braddock@braddock.com> said:
The ability to use a future with the asio::io_service in particular would be quite powerful.
I've attached a quick and dirty futures implementation that I wrote last year to demonstrate how futures and asio might fit together. Unlike the various futures proposals that are around, I prefer to keep the producer and consumer interfaces separate. Hence I have promise<T> (producer interface) and future<T> (consumer interface) -- these names are borrowed from the Alice programming language. Cheers, Chris