Method Concurrent.Future()->apply_smart() Method apply_smart protected void apply_smart(mixed val, Promise p, function(mixed, mixed ... :mixed|Future) fun, array(mixed) ctx) Description Apply fun with val followed by the contents of ctx, and update p with the eventual result.