busymachines.pureharm.effects
Type members
Classlikes
Used to block on an F[A], and ensure that all recovery and shifting back is always done.
Used to block on an F[A], and ensure that all recovery and shifting back is always done.
For instance, always ensure that any F[A] that talks to, say, amazon S3, is wrapped in such a
blockingShifter.blockOn(S3Util.putSomething(...))
Libraries in the typelevel eco-system tend to already do this, so you don't need to be careful. For instance, doobie will always ensure that this is done to and from the EC that you provide specifically for accessing the DB. But you always need to double check, and be careful that you NEVER execute blocking IO on the same thread pool as the CPU bound one dedicated to your ContextShift[A]
- Authors
Lorand Szakacs, https://github.com/lorandszakacs
- Since
13 Jun 2019
- Companion
- object
!!! N.B. !!! NEVER, EVER wildcard import this, AND, cats.implicits, or anything from the cats packages.
!!! N.B. !!! NEVER, EVER wildcard import this, AND, cats.implicits, or anything from the cats packages.
This object is meant to bring in everything that is in cats + some extra, without burdening the user with two different imports.
Inherited types
Deprecated and Inherited types
- Deprecated
- Inherited from
- CatsEffectAliases