Skip to main content

Glossary

Search and filter commands for Cats Effect ZIO

All 66 commands

Cats Effect
ZIO
ZIO.succeed(a)
IO.pure(a)
ZIO.fail(e)
IO.raiseError(e)
ZIO.effect(thunk)
IO.delay(thunk)
ZIO.attempt(thunk)
IO.blocking(thunk)
UIO[A]
IO[A]
ZIO.fromEither(e)
IO.fromEither(e)
ZIO.fromOption(o)
IO.fromOption(o)
effect.catchAll(f)
effect.handleErrorWith(f)
effect.orElse(fallback)
effect.handleErrorWith(_ => fallback)
effect.mapError(f)
effect.adaptError(f)
effect.retry(schedule)
effect.timeout + handleError
ZIO.collectAll(list)
list.sequence
ZLayer.succeed(service)
Resource.pure(service)
effect.provideLayer(layer)
Kleisli.run(effect)(service)
ZIO.service[A]
IO.ask[A]
layer1 ++ layer2
Resource.forProductN
ZManaged.acquireRelease
Resource.make
effect.fork
effect.start
fiber.join
fiber.join
effect1.race(effect2)
effect1.race(effect2)
effect.timeout(duration)
effect.timeout(duration)
fiber.interrupt
fiber.cancel
ZIO.supervised
Resource with cancel
ZIO.collectAllPar(list)
list.parSequence
ZStream(values)
Stream(values)
stream.map(f)
stream.map(f)
stream.filter(p)
stream.filter(p)
stream.runCollect
stream.compile.toList
stream.mapZIO(f)
stream.evalMap(f)
stream.merge(other)
stream.merge(other)
ZStream.fromPath(path)
Files[IO].readAll(path)
TRef.make(a)
TRef.of[F](a)
STM.succeed(a)
STM.pure(a)
STM.retry
STM.retry
transaction.commit
transaction.commit[F]
TMap.empty[K, V]
TMap.empty[F, K, V]
TQueue.unbounded[A]
TQueue.unbounded[F, A]
ZIO.config[A]
ConfigValue[F, A].load[F]
Config.string
env(key).as[String]
Config.int
env(key).as[Int]
ConfigProvider.envProvider
env(key) default
deriveConfig[A]
parMapN(A)
cfg.withDefault(value)
ConfigValue.default(value)
cfg.validate(msg)(p)
Custom ConfigDecoder
Http.collect[Request] { case ... }
HttpRoutes.of[IO] { case ... }
Response.text(body)
Ok(body)
Client.request(url)
client.expect[String](uri)
Server.serve(app)
BlazeServerBuilder[IO].serve
Method.GET -> Root / "path"
GET -> Root / "path"
req.body.asJson[A]
req.as[A]
Response(status, body = Body.fromStream)
Ok(stream)
query(sql).as[A]
sql"...".query[A]
execute(sql).param(v)
sql"...$v"
query(...).transaction
sql"...".transact(xa)
ZConnectionPool.h2(url, user, pass)
Transactor.fromDataSource
execute(sql).returning
.update.withUniqueGeneratedKeys
sql ++ where
Fragment ++ Fragment
object Main extends ZIOAppDefault
object Main extends IOApp.Simple
override val run: ZIO[...]
val run: IO[Throwable, Unit]
override val bootstrap
IORuntime (implicit)
effect.onInterrupt(f)
effect.onCancel(f)
ZIO.logInfo(msg)
logger.info(msg) (log4cats)
zio.toIO
Use in CE via interop
zio.toResource
Use in CE via interop
effects.parTupled
effects.parTupled
list.traverse(ZIO)
list.traverse(IO)