-
-
Notifications
You must be signed in to change notification settings - Fork 566
Closed
Description
- Remove
cats.effect.Attemptalias. It's currentlyprivate[effect]which is confusing for folks reading the code. We could make it public but I don't think an effect library should provide a minor syntax convenience like this. - Replacing
CatchablewithMonadErrormeans we lose this method:
def attempt[A](fa: F[A]): F[Attempt[A]]This is commonly used in FS2. I suppose the right thing to do here is PRing this method to MonadError in cats.
- We need
unsafeRunAsyncsomewhere -- either onEffector perhaps on a subtype ofEffectif we want to limit where it might be invoked via parametric polymorphism. - Not sure how I feel about
StdIO-- seems like a bucket of random things for which there's no guiding principle on deciding what should be added. E.g., how aboutrandomUUID: IO[UUID]? - Change
IOfrom asealed traitto asealed abstract classto help with binary compat issues in the future. - Note that we are switching to
scala.util.control.NonFatalinstead offs2.util.NonFatal. I'm fine with this but both Paul and Daniel supported using a custom notion ofNonFatalthat didn't catch ControlException and some others. - Probably should think of a new name for
IO#ensuringgiven theensuringfromPredef - To make sure I've got it right,
Task.delayis nowIO.applyandTask.applydoesn't exist, right?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels