object Queue
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) Use cats.effect.std.Queue instead
- Source
- Queue.scala
- Alphabetic
- By Inheritance
- Queue
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 arg0: Concurrent[F]): F[Queue[F, A]]
Creates a queue with the specified size bound.
- def boundedNoneTerminated[F[_], A](maxSize: Int)(implicit arg0: Concurrent[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 arg0: Concurrent[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 arg0: Concurrent[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()
- def create[F[_], S, A](strategy: Strategy[A, Chunk[A], S, Int])(implicit arg0: Concurrent[F]): F[Queue[F, A]]
- def createNoneTerminated[F[_], S, A](strategy: Strategy[Option[A], Option[Chunk[A]], S, Int])(implicit F: Concurrent[F]): F[NoneTerminatedQueue[F, A]]
- 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 arg0: Concurrent[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 arg0: Concurrent[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()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneTerminated[F[_], A](implicit arg0: Concurrent[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 arg0: Concurrent[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 arg0: Concurrent[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 arg0: Concurrent[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 Strategy
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated