flat_map
Description:
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 |