map


Description:

public Future<U> map<U> (owned MapFunc<T,U> fn)

Transforms the successful value.

When source future fails or is cancelled, the returned future keeps that failure state.

Parameters:

fn

transform function.

Returns:

transformed future.