debug

package
v0.0.0-...-dd0f3b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrProcessorReturnedEarly = "processor returned before context closed"
)

Error messages

Variables

This section is empty.

Functions

func ProcessorReturnedEarly

func ProcessorReturnedEarly[In, Out any](
	p stream.Processor[In, Out],
) stream.Processor[In, Out]

ProcessorReturnedEarly will report a Fatal error to the Context.Monitor channel if the wrapped stream.Processor returns before the Context.Done channel is closed. This is useful to debug processors that are meant to perform a continuous loop over their Context.In channel. Note that not all processors need to perform a continuous loop. For example, node.Bind simply plumbs a channel between two paired processors and returns

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL