You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found it quite useful for example because I'm using Future and wanna implement a Cache middleware so I have to make my effect lazily by Lazy[Future], so my type will be Service[Mid[Lambda[a => Lazy[Future[a]], *]], buy my Metrics middleware remains Future, so instead of change Metrics' effect type to Lazy[Future] and manually wrap and unwrap Lazy in every call, I think it is a lot easier to just map Mid[Future, *] to Mid[Lambda[a => Lazy[Future[a]], *] which can be done by InvariantK.imapK.
The text was updated successfully, but these errors were encountered:
I found it quite useful for example because I'm using
Future
and wanna implement aCache
middleware so I have to make my effect lazily byLazy[Future]
, so my type will beService[Mid[Lambda[a => Lazy[Future[a]], *]]
, buy myMetrics
middleware remainsFuture
, so instead of changeMetrics
' effect type toLazy[Future]
and manually wrap and unwrapLazy
in every call, I think it is a lot easier to just mapMid[Future, *]
toMid[Lambda[a => Lazy[Future[a]], *]
which can be done by InvariantK.imapK.The text was updated successfully, but these errors were encountered: