V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
netcan
V2EX  ›  程序员

用 C++20 撸了一个模仿 Python 的 asyncio 协程库

  •  1
     
  •   netcan ·
    netcan · Dec 1, 2021 · 3145 views
    This topic created in 1617 days ago, the information mentioned may be changed or developed.

    用 C++20 撸了一个模仿 python 的 asyncio 协程库,https://github.com/netcan/asyncio,对 C++协程机制感兴趣的,想要为已有库封装一层协程接口的,可以看看。

    Supplement 1  ·  Dec 1, 2021
    5 replies    2021-12-01 15:54:55 +08:00
    joApioVVx4M4X6Rf
        1
    joApioVVx4M4X6Rf  
       Dec 1, 2021
    好牛啊!赶紧 star 了回头看看研读一下
    kylix
        2
    kylix  
       Dec 1, 2021
    大佬!马上去看看~
    BBCCBB
        3
    BBCCBB  
       Dec 1, 2021
    牛, 就是 c++的这个 co_await 关键字有点扯..
    netcan
        4
    netcan  
    OP
       Dec 1, 2021
    @BBCCBB 历史原因了,await 关键字太容易破坏兼容性了,因为以前的库可能用过这个关键字。
    nmap
        5
    nmap  
       Dec 1, 2021
    感觉是另一种语言了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3032 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 114ms · UTC 15:08 · PVG 23:08 · LAX 08:08 · JFK 11:08
    ♥ Do have faith in what you're doing.