moebius / async-file
为 moebius 协程在文件系统访问中进行透明的上下文切换。
1.0.100
2022-06-06 20:36 UTC
Requires
- moebius/coroutine: >=1.0.100
Requires (Dev)
- charm/testing: >=1 <2
README
此组件为 moebius/coroutine 提供了协程之间的自动上下文切换。这意味着,当与 moebius/coroutine 结合使用时,任何执行文件系统操作的 PHP 组件将自动实现异步非阻塞。
重要
该库通过挂钩到 file:// 流包装器工作。可能有些语义与您习惯的不同,但我们已尽力避免这种情况。
如果您观察到某些差异,请在 https://github.com/frodeborli/moebius-asyncfile 上提交问题。