Mark Fisher
01/22/2020, 12:36 PMfun <F> getSongUrlAsync(MS: MonadDefer<F>) =
MS { getSongUrl() }
but this doesn't compile for me, i'm getting (on a similar function) - see below
What am I doing wrong, or are the docs wrong? I'm a bit lost tbh
The type import for MonadDefer is arrow.fx.typeclasses.MonadDefer
aballano
01/22/2020, 12:56 PMlater
for thataballano
01/22/2020, 12:57 PMMark Fisher
01/22/2020, 1:04 PMaballano
01/22/2020, 1:11 PMMS.later { }
i believeaballano
01/22/2020, 1:11 PMMark Fisher
01/22/2020, 1:14 PMraulraja
01/22/2020, 3:17 PMgetSongUrl
returns a Kinded value like IO or whatever then you want to use defer vs later. In whatever case that doc page is all wrong. Here are the actual combinators https://arrow-kt.io/docs/apidocs/arrow-fx/arrow.fx.typeclasses/-monad-defer/index.html#monaddeferraulraja
01/22/2020, 3:18 PM:kotlin:ank
blocks