FsToolkit.ErrorHandling icon indicating copy to clipboard operation
FsToolkit.ErrorHandling copied to clipboard

Relax types in traverseAsync etc.

Open cmeeren opened this issue 5 months ago • 2 comments

I have always had my own Option.traverseAsync whose signature is f: ('T -> Async<'U>) -> opt: Option<'T> -> Async<Option<'U>>. Now my code is picking up the one from FsToolkit.ErrorHandling, whose signature is f: ('T -> Async<'T>) -> opt: Option<'T> -> Async<Option<'T>>. It unnecessarily restricts the output type to be the same as the input type.

This may apply to other similar traversals.

cmeeren avatar Jun 13 '25 12:06 cmeeren

Yeah, that seems like an oversight. Would you send a PR?

TheAngryByrd avatar Jun 16 '25 16:06 TheAngryByrd

Sorry, I'm completely swamped.

cmeeren avatar Jun 16 '25 16:06 cmeeren