object Queue
- Source
- Queue.scala
- Alphabetic
- By Inheritance
- Queue
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bounded[F[_], A](maxSize: Int)(implicit mk: Mk[F]): F[Queue[F, A]]
Creates a queue with the specified size bound.
- def boundedNoneTerminated[F[_], A](maxSize: Int)(implicit mk: Mk[F]): F[NoneTerminatedQueue[F, A]]
Creates a bounded queue terminated by enqueueing
None
.Creates a bounded queue terminated by enqueueing
None
. All elements beforeNone
are preserved. - def circularBuffer[F[_], A](maxSize: Int)(implicit mk: Mk[F]): F[Queue[F, A]]
Creates a queue which stores the last
maxSize
enqueued elements and which never blocks on enqueue. - def circularBufferNoneTerminated[F[_], A](maxSize: Int)(implicit mk: Mk[F]): F[NoneTerminatedQueue[F, A]]
Creates a queue terminated by enqueueing
None
.Creates a queue terminated by enqueueing
None
. All elements beforeNone
are preserved and never blocks on enqueue. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fairBounded[F[_], A](maxSize: Int, fairSize: Int)(implicit mk: Mk[F]): F[Queue[F, A]]
Created a bounded queue that distributed always at max
fairSize
elements to any subscriber. - def fairUnbounded[F[_], A](fairSize: Int)(implicit mk: Mk[F]): F[Queue[F, A]]
Creates an unbounded queue that distributed always at max
fairSize
elements to any subscriber. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def in[F[_]]: InPartiallyApplied[F]
Provides constructors for Queue with state initialized using another
Sync
datatype.Provides constructors for Queue with state initialized using another
Sync
datatype.This method uses the Partially Applied Type Params technique
val queue = Queue.in[SyncIO].unbounded[IO, String]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneTerminated[F[_], A](implicit mk: Mk[F]): F[NoneTerminatedQueue[F, A]]
Created an unbounded queue terminated by enqueueing
None
.Created an unbounded queue terminated by enqueueing
None
. All elements beforeNone
. - 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 synchronous[F[_], A](implicit mk: Mk[F]): F[Queue[F, A]]
Creates a queue which allows at most a single element to be enqueued at any time.
- def synchronousNoneTerminated[F[_], A](implicit mk: Mk[F]): F[NoneTerminatedQueue[F, A]]
Like synchronous, except that any enqueue of
None
will never block and cancels any dequeue operation. - def toString(): String
- Definition Classes
- AnyRef → Any
- def unbounded[F[_], A](implicit mk: Mk[F]): F[Queue[F, A]]
Creates a queue with no size bound.
- 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])
- object MkIn
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated