Pike v8.1 release 6

Method Concurrent.Future()->transform_with()


Method transform_with

this_program transform_with(function(mixed, mixed ... :Future) success, function(mixed, mixed ... :Future)|void failure, mixed ... extra)

Description

Return a Future that will be fulfilled with either the fulfilled result of applying success with the fulfilled result followed by extra, or the fulfilled result of applying failure with the failed result followed by extra.

failure defaults to success.

See also

flat_map