Package

fs2

async

Permalink

package async

Source
async.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. async
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def boundedQueue[F[_], A](maxSize: Int)(implicit arg0: Async[F]): F[Queue[F, A]]

    Permalink

    Create an bounded asynchronous queue.

    Create an bounded asynchronous queue. Calls to enqueue1 will wait until the queue's size is less than maxSize. See mutable.Queue for more documentation.

  2. object channel

    Permalink
  3. def hold[F[_], A](initial: A, source: Stream[F, A])(implicit arg0: Async[F]): Stream[F, Signal[F, A]]

    Permalink

    Converts a discrete stream to a signal.

    Converts a discrete stream to a signal. Returns a single-element stream.

    Resulting signal is initially initial, and is updated with latest value produced by source. If source is empty, the resulting signal will always be initial.

    source

    discrete process publishing values to this signal

  4. def holdOption[F[_], A](source: Stream[F, A])(implicit arg0: Async[F]): Stream[F, Signal[F, Option[A]]]

    Permalink

    Defined as hold(None, source.map(Some(_)))

  5. package immutable

    Permalink
  6. package mutable

    Permalink
  7. def semaphore[F[_]](initialCount: Long)(implicit arg0: Async[F]): F[Semaphore[F]]

    Permalink

    Create a mutable.Semaphore, initialized to the given count.

  8. def signalOf[F[_], A](initialValue: A)(implicit arg0: Async[F]): F[Signal[F, A]]

    Permalink

    Creates a new continuous signal which may be controlled asynchronously, and immediately sets the value to initialValue.

  9. def synchronousQueue[F[_], A](implicit F: Async[F]): F[Queue[F, A]]

    Permalink

    A synchronous queue always has size 0.

    A synchronous queue always has size 0. Any calls to enqueue1 block until there is an offsetting call to dequeue1. Any calls to dequeue1 block until there is an offsetting call to enqueue1.

  10. def unboundedQueue[F[_], A](implicit arg0: Async[F]): F[Queue[F, A]]

    Permalink

    Create an unbounded asynchronous queue.

    Create an unbounded asynchronous queue. See mutable.Queue for more documentation.

Inherited from AnyRef

Inherited from Any

Ungrouped