The Delphi Geek – Future of T, that is. Or, in Delphi syntax, TFuture<T>. Yesterday I wrote about futures in OmniThreadLibrary 2.0 (supported only in D2009+) and I mentioned that implemented futures in plain D2009+ should be really simple. And it really is – it took me all of 15 minutes to write the supporting library and a simple test case. The code below is released to public domain. I’m claiming no copyrights – use it as you wish. You don’t even have to attribute it to me. Just don’t use it for evil purposes ;) unit DelphiFuture; interface uses Classes; type IFuture<T> = interface ...
Visits by Source
Users who voted for this posting