marcelo
11/05/2018, 2:08 PMrenderMetricTimer.tagVal(renderTemplate.mediaType.name).time {
but clearly it gives the error
suspend function needs to be call in a subroutine.This function returns a value (
map
). Not sure how can I do this.Zach Klippenstein (he/him) [MOD]
11/05/2018, 5:44 PMtime
from both suspend and non-suspend functions (which I'm not 100% sure is what you're asking, but…), make your time
function inline. Also just generally good practice for higher-order functions like this one that just wrap code in a try/catch.