gouchaoer
V2EX  ›  PHP

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

  •  
  •   gouchaoer · Nov 9, 2017 · 2164 views
    This topic created in 3111 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   ·   2970 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:24 · PVG 08:24 · LAX 17:24 · JFK 20:24
    ♥ Do have faith in what you're doing.