object Features extends Serializable
- Source
- Features.scala
- Alphabetic
- By Inheritance
- Features
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type Flag <: Long with FlagTag
Encodes a feature flag, stored as a
Long
.Encodes a feature flag, stored as a
Long
.Note that feature flags should be powers of 2, because they'll get added to the set via bitwise arithmetic.
Example:
val RED = Features.flag(1) val GREEN = Features.flag(2) val BLUE = Features.flag(4) val WHITE = Features.flag(8)
You can wrap a
Long
into aFlag
via flag. - trait FlagTag extends Any
Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of
Long
), but without the boxing.Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of
Long
), but without the boxing.Inspired by the alexknvl/newtypes project.
- abstract type Flags <: Long with FlagsTag
Encodes a set of Flag values.
Encodes a set of Flag values.
Internally this is still a
Long
, but has its own type for type safety reasons. - trait FlagsTag extends Any
Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of
Long
), but without the boxing.Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of
Long
), but without the boxing.Inspired by the alexknvl/newtypes project.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(flags: Flag*): Features
Builds a new Features instance.
Builds a new Features instance.
- flags
is a list of feature flags to instantiate the value with.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val empty: Features
Reusable, empty Features reference.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flag(value: Long): Flag
Wraps a
Long
value into a Flag.Wraps a
Long
value into a Flag.- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
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.