V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
lcj2class
V2EX  ›  Go 编程语言

prosumer 一个生产者/消费者框架

  •  
  •   lcj2class · 2019-07-14 17:49:43 +08:00 · 2462 次点击
    这是一个创建于 1746 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/jiacai2050/prosumer

    动机

    简单来说,就是 buffered chan 有些 tricks,稍不注意就会用错,感兴趣的可以看看下面两个地方:

    由于在公司几个项目都用了 producer-consumer 模式,于是周末花了些时间,把这块抽了出来,希望对大家有用。

    1 条回复    2019-07-15 07:15:35 +08:00
    gowk
        1
    gowk  
       2019-07-15 07:15:35 +08:00 via Android
    Clojure 大佬现在写 Go 了?关注一下哈哈
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3224 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 12:01 · PVG 20:01 · LAX 05:01 · JFK 08:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.