Packages

  • package root
    Definition Classes
    root
  • package monix
    Definition Classes
    root
  • package execution
    Definition Classes
    monix
  • package annotations
    Definition Classes
    execution
  • package atomic

    A small toolkit of classes that support compare-and-swap semantics for safe mutation of variables.

    A small toolkit of classes that support compare-and-swap semantics for safe mutation of variables.

    On top of the JVM, this means dealing with lock-free thread-safe programming. Also works on top of Javascript, with Scala.js, for API compatibility purposes and because it's a useful way to box a value.

    The backbone of Atomic references is this method:

    def compareAndSet(expect: T, update: T): Boolean

    This method atomically sets a variable to the update value if it currently holds the expect value, reporting true on success or false on failure. The classes in this package also contain methods to get and unconditionally set values.

    Building a reference is easy with the provided constructor, which will automatically return the most specific type needed (in the following sample, that's an AtomicDouble, inheriting from AtomicNumber[A]):

    val atomicNumber = Atomic(12.2)
    
    atomicNumber.incrementAndGet()
    // => 13.2

    These also provide useful helpers for atomically mutating of values (i.e. transform, transformAndGet, getAndTransform, etc...) or of numbers of any kind (incrementAndGet, getAndAdd, etc...).

    Definition Classes
    execution
  • package cancelables

    Cancelables represent asynchronous units of work or other things scheduled for execution and whose execution can be canceled.

    Cancelables represent asynchronous units of work or other things scheduled for execution and whose execution can be canceled.

    One use-case is the scheduling done by monix.execution.Scheduler, in which the scheduling methods return a Cancelable, allowing the canceling of the scheduling.

    Example:

    val s = ConcurrentScheduler()
    val task = s.scheduleRepeated(10.seconds, 50.seconds, {
      doSomething()
    })
    
    // later, cancels the scheduling ...
    task.cancel()
    Definition Classes
    execution
  • package exceptions
    Definition Classes
    execution
  • package misc
    Definition Classes
    execution
  • package rstreams

    Package exposing utilities for working with the Reactive Streams specification.

    Package exposing utilities for working with the Reactive Streams specification.

    Definition Classes
    execution
  • package schedulers
    Definition Classes
    execution
  • Ack
  • AsyncQueue
  • AsyncSemaphore
  • AsyncVar
  • BufferCapacity
  • Callback
  • Cancelable
  • CancelableFuture
  • CancelablePromise
  • ChannelType
  • ExecutionModel
  • Features
  • FutureUtils
  • Scheduler
  • UncaughtExceptionReporter
  • compat

final class Features extends AnyVal with Serializable

Features describes a set of features described via bitwise operators applied to ints, but made type safe.

This is like a special purpose BitSet.

Currently used to describe the features of Scheduler.

Linear Supertypes
Serializable, Serializable, AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Features
  2. Serializable
  3. Serializable
  4. AnyVal
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Features(flags: Flags)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(feature: Flag): Features

    Adds a feature to the set.

    Adds a feature to the set.

    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def contains(feature: Flag): Boolean

    Tests if a given feature is in the set.

    Tests if a given feature is in the set.

    Annotations
    @inline()
  7. def diff(other: Features): Features

    Computes the difference between the source and another feature set, such that the new value contains the features of the source that are not in the other set.

    Computes the difference between the source and another feature set, such that the new value contains the features of the source that are not in the other set.

    Annotations
    @inline()
  8. val flags: Flags
  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. def intersect(other: Features): Features

    Longersects the source with another feature set, such that the new value will contain the flags that are contained by both.

    Longersects the source with another feature set, such that the new value will contain the flags that are contained by both.

    Annotations
    @inline()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def toString(): String
    Definition Classes
    Features → Any
  13. def union(other: Features): Features

    Computes the union between the source and another feature set, such that the new value contains the features of both.

    Computes the union between the source and another feature set, such that the new value contains the features of both.

    Annotations
    @inline()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyVal

Inherited from Any

Ungrouped