object BooleanCancelable extends Serializable
- Source
- BooleanCancelable.scala
- Alphabetic
- By Inheritance
- BooleanCancelable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val alreadyCanceled: BooleanCancelable with Empty
Returns an instance of a BooleanCancelable that's already canceled.
- def apply(callback: () => Unit): BooleanCancelable
Builder for BooleanCancelable.
Builder for BooleanCancelable.
- callback
is a function that will execute exactly once on canceling.
- def apply(): BooleanCancelable
Builder for BooleanCancelable.
- val dummy: BooleanCancelable
Returns a BooleanCancelable that can never be canceled.
Returns a BooleanCancelable that can never be canceled.
Useful as a low-overhead instance whose
isCanceled
value is alwaysfalse
, thus similar in spirit with alreadyCanceled.
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.catnap exposes pure abstractions built on top of the Cats-Effect type classes:
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.tail exposes Iterant for purely functional pull based streaming:
Batch
andBatchCursor
, the alternatives to Scala'sIterable
andIterator
respectively that we are using within Iterant's encodingYou can control evaluation with type you choose - be it Task, Coeval, cats.effect.IO or your own as long as you provide correct cats-effect or cats typeclass instance.