An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/ngaut/channels

Package channels provides a collection of helper functions, interfaces and implementations for working with and extending the capabilities of golang's existing channels. The general interface provided is Channel, though sub-interfaces are also provided for cases where the full Channel interface cannot be met (for example, InChannel for write-only channels). Helper functions include Pipe and Tee (which behave much like their Unix namesakes), as well as Multiplex. Weak versions of these functions also exist, which do not close their output channel on completion. A simple wrapper type called NativeChannel is included for wrapping native golang channels in the appropriate interface. Several special implementations of the Channel interface are also provided, including channels backed by special buffers (resizable, infinite, ring buffers, etc) and other useful types. A black hole channel for discarding unwanted values (similar in purpose to ioutil.Discard or /dev/null) rounds out the set. Several types in this package provide so-called "infinite" buffers. Be *very* careful using these, as no buffer is truly infinite - if such a buffer grows too large your program will run out of memory and crash. Caveat emptor.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/ngaut/channels
License: MIT
Latest release: about 11 years ago
First release: about 11 years ago
Namespace: github.com/ngaut
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago

    Loading...
    Readme
    Loading...