[package]
name = "mini_php_http"
version = "0.1.0"
edition = "2021"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Fiber協調スケジューラ(sleep + readable + writable) | |
| */ | |
| final class Scheduler | |
| { | |
| /** @var SplQueue<array{0:Fiber,1:mixed}> */ | |
| private SplQueue $ready; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Fiber協調スケジューラ(sleep + readable + writable) | |
| * - await(['sleep', seconds]) -> resume(seconds) | |
| * - await(['readable', stream]) -> resume(stream) | |
| * - await(['writable', stream]) -> resume(stream) | |
| */ | |
| final class Scheduler | |
| { |
NewerOlder