计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
php-concurrency【效率与协作】Implement concurrency and non-blocking I/O in modern PHP. Use when implementing concurrent requests, async processing, or non-blocking I/O in PHP.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
See implementation examples for directory layout.
new Fiber() for low-level cooperative multitasking.Fiber::suspend('paused') to yield execution back to caller.$fiber->resume('hello') to continue execution. Catch exceptions via $fiber->getReturn().See implementation examples for Fiber cooperative multitasking code.
Loop::get() to access event loop.react/http or Guzzle Pool($client, ...) for concurrent requests.file_get_contents or sleep() inside Fiber or EventLoop.Loop::run() at your application entry point to start async loop.See implementation examples for concurrent HTTP requests with Guzzle Pool.
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
Do not share mutable,connection state,Bound concurrency
Use Guzzle pool for concurrent requests,guzzle
Pool($client
do not call blocking file_get_contents,non-blocking I/O
Additional task-grounded exact anchors: Loop::get(); separate PDO connection