-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cats io support #26
base: master
Are you sure you want to change the base?
Cats io support #26
Conversation
01466f3
to
b6b7f4e
Compare
/** | ||
* Heavily inspired from work done by @cchantep in Acolyte (see acolyte.reactivemongo.ComposeWithCompletion) | ||
*/ | ||
trait LiftAsync[F[_], M[_], A] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic is always async ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes (but no in term of cats-effect
's Async
typeclass), since the essence of this typeclass is to wrap the computation in an async context (Future
or IO
). Maybe it can be confusing, so feel free to suggest any name which could express it better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Task
? Effect
?
Pull Request Checklist
Purpose
Currently we are supporting the translation of our DB operations to
Future
.Future
is actually eager so the DB operations will be executed during the translations process. It might be useful to add support for a lazy asynchronous datatype. We choose to add support for theIO
type provided bycats-effect
.Why choosing
cats-effect
or notzio
?cats-effect
come with typeclasses which formalize operations (think ofAsync
,Sync
).For people using
zio
, they will have to use a bridge project between the two.