-
ProblemWe need to call a GrpcExceptionHandlerFunction { ctx, status, cause, metadata ->
val dialog = runBlocking { cause.translateToDialog(locale) } // suspend i18n lookup
metadata.put(DIALOG_BIN_KEY, dialog.toByteArray())
status
}This is risky because We also tried wrapping Why we can't pre-compute
QuestionIs there a recommended pattern for async work in the error response path? If not, would there be interest in something like an
Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We need |
Beta Was this translation helpful? Give feedback.
We need
AsyncGrpcExceptionHandlerFunctionto support asynchronous functions. I have no objection to adding the API in Armeria.