Skip to content

What to do for nested API calls? #408

Answered by vkhorikov
meeple142 asked this question in Q&A
Discussion options

You must be logged in to vote

There aren't that many methods in the library that work with collections, so adding additional ones is probably the best way forward. The BindSelect you proposed looks good, but, since the library takes naming conventions from F#, it should be BindMap (or MapBind) instead.

Regarding retries. I wouldn't do those retries separately and instead would do them inside the same method that adds a person/pet. This way, you can control the # of retries and it's just cleaner this way because you aren't stopping working on an object until you are completely done with it. This means that you would still need to introduce wrapper methods, so maybe your current approach is the best one after all.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by meeple142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants