gouchaoer
V2EX  ›  PHP

老外做了一个 semi-coroutine 的框架 amp

  •  
  •   gouchaoer · Nov 9, 2017 · 2252 views
    This topic created in 3154 days ago, the information mentioned may be changed or developed.
    就这半年的事情: https://github.com/amphp/amp
    作者出来推广: https://www.reddit.com/r/PHP/comments/7bc1yv/the_magic_behind_async_php

    在基于 yield/generator 的半协程里这个文档不错,而且可行性也很好,可是还是只能用单核,没有 swoole 那样的完善的多进程分工,而且老实说 yield 用起来没有真的 coroutine 用起来简单,这个比较合适写点 php-cli 的小玩意儿类似爬虫之类的吧
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3658 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 05:02 · PVG 13:02 · LAX 22:02 · JFK 01:02
    ♥ Do have faith in what you're doing.