StreamActor<M, A>.create constructor

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

Creates a StreamActor that handles messages with the Handler returned by createHandler.

Use the of constructor to wrap a function directly.

Implementation

StreamActor.create(Handler<M, Stream<A>> Function() createHandler)
    : super.create(createHandler);