php-concurrency

Installation
SKILL.md

PHP Concurrency

Priority: P2 (MEDIUM)

Structure

See implementation examples for directory layout.

Implement PHP Fibers (8.1+)

  • Multitasking: Use new Fiber() for low-level cooperative multitasking.
  • Yielding Control: Use Fiber::suspend('paused') to yield execution back to caller.
  • Resuming: Call $fiber->resume('hello') to continue execution. Catch exceptions via $fiber->getReturn().
  • Isolation: Use separate PDO connections per Fiber to avoid shared mutable state.

See implementation examples for Fiber cooperative multitasking code.

Configure Non-blocking I/O & Event Loops

Installs
1
GitHub Stars
521
First Seen
12 days ago
php-concurrency — hoangnguyen0403/agent-skills-standard