-
|
Current version: arrow-resilience 1.2.4 Trying to convert some code that loads data over the network to retry in case of failure using Now I noticed that But since my existing function is a So I'm looking for a way to combine this. Ideally it would work the same with a signature like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hey @milgner, I think this is some kind-of mistake in the API. I think this can be considered a bug, and if you're interested I'd be great to have a ticket, or a PR for this! |
Beta Was this translation helpful? Give feedback.
-
|
I think the reason this started working again is maybe you were trying to use a reference instead of a lambda? |
Beta Was this translation helpful? Give feedback.
I think the reason this started working again is maybe you were trying to use a reference instead of a lambda?
retryEither(::someSuspendFunction)would not work, annoyingly. However,retryEither { someSuspendFunction() }absolutely works as long as you're already in asuspendcontext.