class Queue[F[_], T] extends AnyRef
Nonblocking, concurrent, asynchronous queue.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Queue
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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 canOffer: F[Unit]
Signals that queue size became less than maxSize.
Signals that queue size became less than maxSize.
def aux(): F[Unit] = queue.offer(o).flatMap { case false => queue.canOffer *> aux() case true => Effect[F].unit } aux()
Example: - def cancelSignal: F[Unit]
Resolves only if
stream.cancelran. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): F[Unit]
Immediately stop offering and pulling items from the queue.
- def enqueue(item: T): F[Unit]
Enqueue item.
Enqueue item. If maxSize reached waits until queue will decrease.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(e: Throwable): F[Unit]
- def failUnsafe(e: Throwable): Unit
- 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()
- def offer(item: T): F[Boolean]
Offers
itemto the queue.Offers
itemto the queue.- returns
true is ok and false if maxSize reached or queue is stopped.
- def offerUnsafe(item: T): Boolean
Strict version of offer.
Strict version of offer. Still thread safe.
- def stop(): F[Unit]
Disallow to offer new items.
Disallow to offer new items. Stream ends with last item.
- val stream: Stream[F, T]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeClose(): Unit
- def unsafeStop(): Unit
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated