flat_map


Description:

[ 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).

Note:

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

Parameters:

func

Function applied to value

Returns:

Value of a future returned by function

See also:

map




2022 vala-language.org