tee-demo

command
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package main demonstrates Tee lockstep fan-out behavior.

A single upstream feeds a Tee with two branches: one fast (5ms) and one slow (50ms). Because Tee is lockstep, every item must be accepted by both branches before the next can flow. The slow branch dictates throughput.

Run:

go run ./examples/tee-demo/
go run ./examples/tee-demo/ -reverse

Jump to

Keyboard shortcuts

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