There's no arrow eval for suspending functions (so...
# arrow
d
There's no arrow eval for suspending functions (sometimes those are the heavier computation that need to be done later...)?
a
d
How would this help? Doesn't it create this behind the scenes:
Copy code
data class Later<out A>(f: () -> A) : Eval<A> , Lazy<A>
where
f
isn't suspending?
a
oh, now I understand, you literally mean a
suspend
function!
👍🏼 1
↖️ 1
d
I guess there's a reason why they don't support them?
a
we just didn't implement them, but it's possible to do it in the same way that was done for
arrow-collectors
I'll prepare a PR tonight
👍🏼 1
d
It's nice to have since the Eval.later could always be a regular
by lazy { }
in a lot of cases, but Eval could be the first to support suspend funs... maybe even having
val suspendFoo by Eval.coLazy { }
or something similar, which could cover such cases too...
a
❤️ 2