scalaz.stream

async

package async

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. async
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. def actorQueue[A](actor: Actor[Msg[A]]): Queue[A]

    Convert from an Actor accepting message.queue.Msg[A] messages to a Queue[A].

  2. def actorRef[A](actor: Actor[Msg[A]]): Ref[A]

    Convert from an Actor accepting message.queue.Msg[A] messages to a Queue[A].

  3. package immutable

  4. def localQueue[A]: (Queue[A], Process[Task, A])

    Create a source that may be added to or halted asynchronously using the returned Queue, q.

    Create a source that may be added to or halted asynchronously using the returned Queue, q. On calling q.enqueue(a), unless another thread is already processing the elements in the queue, listeners on the queue will be run using the calling thread of q.enqueue(a), which means that enqueueing is not guaranteed to take constant time. If this is not desired, use queue with a Strategy other than Strategy.Sequential.

  5. def localRef[A]: Ref[A]

    Returns a continuous Process whose value can be set asynchronously using the returned Ref.

    Returns a continuous Process whose value can be set asynchronously using the returned Ref. Callbacks will be run in the calling thread unless another thread is already reading from the Ref, so set is not guaranteed to take constant time. If this is not desired, use ref with a Strategy other than Strategy.Sequential.

  6. package mutable

  7. def queue[A](implicit S: Strategy = Strategy.DefaultStrategy): (Queue[A], Process[Task, A])

    Create a source that may be added to or halted asynchronously using the returned Queue.

    Create a source that may be added to or halted asynchronously using the returned Queue. See async.Queue. As long as the Strategy is not Strategy.Sequential, enqueueing is guaranteed to take constant time, and consumers will be run on a separate logical thread. Current implementation is based on actor.queue.

  8. def ref[A](implicit S: Strategy = Strategy.DefaultStrategy): Ref[A]

    Returns a ref, that can create continuous process, that can be set asynchronously using the returned Ref.

  9. def signal[A](implicit S: Strategy = Strategy.DefaultStrategy): Signal[A]

    Create a new continuous signal which may be controlled asynchronously.

    Create a new continuous signal which may be controlled asynchronously. All views into the returned signal are backed by the same underlying asynchronous Ref.

  10. def toSink[A](q: Queue[A], cleanup: (Queue[A]) ⇒ Task[Unit] = (q: Queue[A]) => Task.delay {}): Process.Sink[Task, A]

    Convert an Queue[A] to a Sink[Task, A].

    Convert an Queue[A] to a Sink[Task, A]. The cleanup action will be run when the Sink is terminated.

  11. def topic[A](implicit S: Strategy = Strategy.DefaultStrategy): Topic[A]

    Returns a topic, that can create publisher (sink) and subscriber (source) processes that can be used to publish and subscribe asynchronously.

    Returns a topic, that can create publisher (sink) and subscriber (source) processes that can be used to publish and subscribe asynchronously. Please see Topic for more info.

Inherited from AnyRef

Inherited from Any

Ungrouped