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