All Projects → jiacai2050 → prosumer

jiacai2050 / prosumer

Licence: MIT License
A producer-consumer solution for Golang

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to prosumer

anki-awesome-select
This is the select template for Anki with awesome interface/Anki选择题模板
Stars: ✭ 59 (+90.32%)
Mutual labels:  select
select2-to-tree
Select2-to-Tree extends Select2 to support arbitrary level of nesting...
Stars: ✭ 71 (+129.03%)
Mutual labels:  select
tom-select
Tom Select is the hybrid of a textbox and select box. Forked from selectize.js to provide a framework agnostic autocomplete widget with native-feeling keyboard navigation. Useful for tagging, contact lists, etc.
Stars: ✭ 520 (+1577.42%)
Mutual labels:  select
channelHelper
基于walle工具的多渠道打包脚本
Stars: ✭ 35 (+12.9%)
Mutual labels:  channel
vue-single-select
single select dropdown with autocomplete
Stars: ✭ 43 (+38.71%)
Mutual labels:  select
Album
android 图片视频加载库,单选,多选,预览,自定义UI,相机,裁剪...等等 已适配android10,11
Stars: ✭ 53 (+70.97%)
Mutual labels:  select
Tiginx
Tiginx is a Shanzhai Nginx project , please buyao use it xian , if meet problem , I no fuze ...
Stars: ✭ 29 (-6.45%)
Mutual labels:  select
eventify
Lightweight Module for Asynchronous Event Driven Systems
Stars: ✭ 14 (-54.84%)
Mutual labels:  producer-consumer
laravel-simple-select
Laravel Simple Select inputs component for Blade and Livewire.
Stars: ✭ 59 (+90.32%)
Mutual labels:  select
hast-util-select
utility to add `querySelector`, `querySelectorAll`, and `matches` support for hast
Stars: ✭ 20 (-35.48%)
Mutual labels:  select
toyhttpd
I/O 模型练手代码,分别使用阻塞式 I/O、select、poll 和 epoll 和 Java NIO 实现了简单的 HTTP Server
Stars: ✭ 43 (+38.71%)
Mutual labels:  select
ring-channel
Bounded MPMC channel abstraction on top of a ring buffer
Stars: ✭ 24 (-22.58%)
Mutual labels:  channel
mithril-select
Custom Select Component for Mithril.js
Stars: ✭ 14 (-54.84%)
Mutual labels:  select
channel
Go-like channels for JavaScript
Stars: ✭ 49 (+58.06%)
Mutual labels:  channel
ACVR2017
An Innovative Salient Object Detection Using Center-Dark Channel Prior
Stars: ✭ 20 (-35.48%)
Mutual labels:  channel
select-plugin
💎一个三级联动小插件
Stars: ✭ 49 (+58.06%)
Mutual labels:  select
svelecte
Selectize-like component written in Svelte, also usable as custom-element 💪⚡
Stars: ✭ 121 (+290.32%)
Mutual labels:  select
ev
Lightweight event-loop library based on multiplexing IO
Stars: ✭ 15 (-51.61%)
Mutual labels:  select
unist-util-select
utility to select unist nodes with CSS-like selectors
Stars: ✭ 41 (+32.26%)
Mutual labels:  select
xm2cloud term
powerful webssh that developed with django, channels, xterm,ioloop
Stars: ✭ 17 (-45.16%)
Mutual labels:  select

Prosumer

GoDoc Build Status codecov

A producer-consumer solution for Golang.

Motivation

Go is popular for its simplicity, builtin support for concurrency, light-weight goroutine. However, there are some tricks(here and there) when to coordinate among different goroutines, especially when implements producer-consumer pattern using buffered chan.

I don't want cover details here, guys who interested can check links above. But following cannot be emphasized too much:

Close chan is a sender -> receiver communication, not the reverse. #11344

Feature

  • Inner buffer queue support RejectPolicy
  • Graceful close implemented

If you have any suggestions/questions, open a PR.

Usage

There is a quickstart example , view the GoDoc for details.

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].