#async Result.map

1 messages · Page 1 of 1 (latest)

random forum
#

Is there a way to make an async function in Result#map?

#

this returns Result<Future<Output = Result>>>

#

when I just want it to return Result<Result

#

due to the way my error handling works this is fine

lofty bough
random forum
#

thanks

lofty bough
#

Above function doesn't return Result<Result<>> if you really want that I think you are looking for FutureExt::map

#

It must be some method of TryFutureExt or FutureExt but I couldn't remember.

random forum