KevinBlandy
V2EX  ›  问与答

Go 轻量级事件总线框架,你们都用啥?

  •  
  •   KevinBlandy · Jul 22, 2022 · 1270 views
    This topic created in 1398 days ago, the information mentioned may be changed or developed.

    小应用,有些地方打算用事件发布 /订阅来实现一些功能,类似于SpringApplicationEvent

    在 Github 找了一个比较热门的:

    https://github.com/asaskevich/EventBus

    但是很久没维护了,而且很多 issues 也没处理,怕有坑。

    还有其他推荐的吗?

    1 replies    2022-07-22 19:19:33 +08:00
    tairan2006
        1
    tairan2006  
       Jul 22, 2022 via Android
    其实你用 channel 自己封装一下就行…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3056 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 14:33 · PVG 22:33 · LAX 07:33 · JFK 10:33
    ♥ Do have faith in what you're doing.