I have suspended function and trying to add resili...
# coroutines
n
I have suspended function and trying to add resiliency to it using resiliency4j annotations. But it's expecting recover function to have coroutine continuation interface as one of the params
c
resiliency4j doesn’t know about Kotlin/Coroutines, so is only going to see the interface you pass it.
suspend
functions are transformed by the compiler into a function with a continuation parameter.
r
With the resilience4j-kotlin module you can manually decorate suspending functions, but the annotations don't support suspending functions yet, see also: https://github.com/resilience4j/resilience4j/issues/1539
n
Thanks 👍