StreamActor<M, A> constructor

StreamActor<M, A>(
  1. Handler<M, Stream<A>> handler
)

Creates a StreamActor that handles messages with the given Handler.

Prefer to use the StreamActor.create constructor to avoid instantiating the Handler locally, unnecessarily.

Use the of constructor to wrap a function directly.

Implementation

StreamActor(Handler<M, Stream<A>> handler) : super(handler);