Add support for Futures, following the Java pattern.