jooby-project / jooby

The modular web framework for Java and Kotlin
https://jooby.io
Apache License 2.0
1.7k stars 200 forks source link

Allow Kotlin suspending functions in error handlers #3405

Closed rjaros closed 2 months ago

rjaros commented 4 months ago

I would like to generate custom error response using Kotlin suspending function. Currently I can only use runBlocking {} call . Would be great to see better solution.

jknack commented 3 months ago

@rjaros would you like to submit a PR?

rjaros commented 3 months ago

I don't know what is the best way to fix this.