object ReplaySubject extends Serializable
- Source
- ReplaySubject.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ReplaySubject
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
apply[T](initial: T*): ReplaySubject[T]
Creates an unbounded replay subject.
-
def
create[T](initial: Seq[T]): ReplaySubject[T]
Creates an unbounded replay subject.
-
def
createLimited[T](capacity: Int, initial: Seq[T]): ReplaySubject[T]
Creates a size-bounded replay subject, prepopulated.
Creates a size-bounded replay subject, prepopulated.
In this setting, the ReplaySubject holds at most size items in its internal buffer and discards the oldest item.
- capacity
is the maximum size of the internal buffer
- initial
is an initial sequence of elements to prepopulate the buffer
-
def
createLimited[T](capacity: Int): ReplaySubject[T]
Creates a size-bounded replay subject.
Creates a size-bounded replay subject.
In this setting, the ReplaySubject holds at most size items in its internal buffer and discards the oldest item.
- capacity
is the maximum size of the internal buffer
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.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types
.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types
.