[ CCode ( ordering = 6 ) ]
public virtual Future<A> flat_map<A> (owned FlatMapFunc<A,G> func)
Maps a future value to another future value which is returned (call does not block).
As time taken by function does not contribute to wait_until and the implementation is allowed to compute value eagerly by wait_async it is recommended to put the larger computation inside the returned future for example by task
func |
Function applied to value |
Value of a future returned by function |