monitor

Materializes to a FlowMonitor that monitors messages flowing through or completion of the operators.

Watching status operators

Signature

def monitor[Mat2]()(combine: (Mat, FlowMonitor[Out]) => Mat2): ReprMat[Out, Mat2]
def monitorMat[Mat2](combine: (Mat, FlowMonitor[Out]) => Mat2): ReprMat[Out, Mat2]
def monitor: ReprMat[Out, (Mat, FlowMonitor[Out])]

Description

Materializes to a FlowMonitor that monitors messages flowing through or completion of the operators. The operators otherwise passes through elements unchanged. Note that the FlowMonitor inserts a memory barrier every time it processes an event, and may therefore affect performance.

emits when upstream emits an element

backpressures when downstream backpressures

completes when upstream completes

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.