Is there any way to implement a suspend function w...
# ktor
m
Is there any way to implement a suspend function with a class? Something like
Copy code
class RequestHandler : suspend (ApplicationCall) -> Unit {
    override suspend fun invoke(call: ApplicationCall) {
        call.respondText(whatever)
    }
}