The problem seems to be that too many things are i...
# announcements
l
The problem seems to be that too many things are inlined, but I need that many things inlined
I need the function to work both in suspend context and non-suspend context
(the high-order function)
And I don't want to create a suspended alternative
Ok, I'll try to explain the problem
Given function
fun foo(boo: () -> Unit) { }
I want to call
foo { suspendBoo() }
and
foo { nonSuspendBoo() }
But if I let
boo
be
boo: suspend () -> Unit
, the second case won't work
Or will it.... Hmm
My original problem is that I want to run on the current suspend scope if I'm inside one, but outside it if I'm not
ty 😄