streaming

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package streaming offers a new take on streaming data, providing higher-level abstractions than standard Go readers and writers.

This package provides three main streaming components:

  • stream: Data stream API for creating and consuming data streams
  • writer: Asynchronous writer that buffers data and writes in background
  • backpressure: Backpressure-aware channels to prevent resource exhaustion

Basic usage:

// Create an asynchronous writer
writer := writer.New(underlyingWriter, bufferSize)
defer writer.Close()

// Write data asynchronously
writer.Write(data)

All streaming components support common operations like filtering, mapping, and reducing, with built-in error handling and cancellation support.

Directories

Path Synopsis
Package channel provides backpressure-aware channels for flow control in concurrent applications.
Package channel provides backpressure-aware channels for flow control in concurrent applications.
Package stream provides a powerful and expressive API for processing sequences of data in Go.
Package stream provides a powerful and expressive API for processing sequences of data in Go.
Package writer provides asynchronous buffered writing for Go applications.
Package writer provides asynchronous buffered writing for Go applications.

Jump to

Keyboard shortcuts

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