Make futures accept lambdas and blocks.