kotlin newb here, I have the following function in...
# coroutines
r
kotlin newb here, I have the following function in
Controller.kt
when I attempt to call this from
main()
I get an IDE error (see below), can anyone help me resolve this?
Copy code
fun <T> awsrun(f: (Ec2Client) -> T): List<T> {
        return clients.values.map { f(it) }
    }
j
awsrun
is not marked
inline
so it has to accept a
suspend
argument if you want to call suspend functions
🙌 1
r
thank you!