Queue
object Queue
- Companion
- class
class Object
trait Matchable
class Any
Type members
Classlikes
Value members
Methods
Provides constructors for Queue with state initialized using
another
another
Sync datatype.This method uses the Partially Applied Type Params technique
{{{
val queue = Queue.in[SyncIO] .unbounded[IO, String]
}}}
val queue = Queue.in[SyncIO] .unbounded[IO, String]
}}}
def boundedNoneTerminated[F <: ([_$46] =>> Any), A](maxSize: Int)(F: Concurrent[F]): F[NoneTerminatedQueue[F, A]]
Creates a bounded queue terminated by enqueueing
None. All elements before None are preserved. def circularBufferNoneTerminated[F <: ([_$48] =>> Any), A](maxSize: Int)(F: Concurrent[F]): F[NoneTerminatedQueue[F, A]]
Creates a queue terminated by enqueueing
None. All elements before None are preserved and never blocks on enqueue. def fairBounded[F <: ([_$49] =>> Any), A](maxSize: Int, fairSize: Int)(F: Concurrent[F]): F[Queue[F, A]]
Created a bounded queue that distributed always at max
fairSize elements to any subscriber. def synchronousNoneTerminated[F <: ([_$52] =>> Any), A](F: Concurrent[F]): F[NoneTerminatedQueue[F, A]]
Like synchronous, except that any enqueue of
None will never block and cancels any dequeue operation.