Pike v8.1 release 6

Method Concurrent.Future()->transform()


Method transform

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

Description

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

failure defaults to success.

See also

map