applyWorker<A, S> function
Implementation
Future applyWorker<A, S>(
Stream<A> actionStream,
WorkerContext<S> context,
Worker<A, S> worker
) async {
await actionStream.forEach((action) async {
await worker.work(context, action);
});
}