class Movie::Streams::Typed::Flow(In, Out, Mat)

Overview

Reusable one-in/one-out flow blueprint. In and Out may differ.

Defined in:

movie/streams/core.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(&block : AbstractActorSystem, StageChannel(In) -> Materialization(Out, Mat)) #

[View source]

Instance Method Detail

def materialize(system : AbstractActorSystem, inlet : StageChannel(In)) : Materialization(Out, Mat) #

Internal materialization hook used by composition.


[View source]
def via(flow : Flow(Out, Next, NextMat)) : Flow(In, Next, Mat) forall Next, NextMat #

[View source]
def via_mat(flow : Flow(Out, Next, NextMat), &combine : Mat, NextMat -> Combined) : Flow(In, Next, Combined) forall Next, NextMat, Combined #

[View source]