public virtual Future<A> light_map<A> (owned LightMapFunc<A,G> func)
Maps a future value to another value by a function and returns the another value in future.
The function may be reevaluated at any time and it might be called lazily. Therefore it is recommended for it to be idempotent. If the function needs to be called eagerly or have side-effects it is recommended to use map.
Function applied to value
Value returned by function