Shouldn't event handlers in ktor be a `suspend` fu...
# ktor
a
Shouldn't event handlers in ktor be a
suspend
functions? At the moment I cannot use synchronization primitives (channels, mutexes) inside them.
It is about:
Copy code
typealias EventHandler<T> = (T) -> Unit
My example:
Copy code
pipeline.environment.monitor.subscribe(Routing.RoutingCallStarted) { call ->
    // Here I want to take a mutex or send any message into a channel
}