martmists
11/25/2024, 10:44 PMpipeline.intercept(ApplicationCallPipeline.Monitoring) {
val start = Clock.System.now()
val (exception, duration) = measureTimedValue {
try {
proceed()
null
} catch (e: Exception) {
exceptionsChannel.send(e)
e
}
}
// ...
if (exception != null) {
throw exception
}
}
Am I not supposed to call proceed, or should I catch exceptions some other way?Daniel Pitts
11/26/2024, 12:56 AMDaniel Pitts
11/26/2024, 12:58 AMmartmists
11/26/2024, 7:12 AMAleksei Tirman [JB]
11/26/2024, 8:27 AMmartmists
11/26/2024, 9:01 AMAleksei Tirman [JB]
11/26/2024, 9:02 AMmartmists
11/26/2024, 9:04 AMChannel<Exception>()
which I'd assumed would grow as necessary similar to a List.Aleksei Tirman [JB]
11/26/2024, 9:06 AMChannel<Exception>(10)
What do you mean by growing channel?Aleksei Tirman [JB]
11/26/2024, 9:08 AMmartmists
11/26/2024, 9:33 AMAleksei Tirman [JB]
11/26/2024, 9:57 AM