Revolt event loop hangs with file operations inside defer()
evll opened this issue · comments
Jevgenij Zhukov commented
Not sure, if it's related to #75 , but the script below is just hanging indefinitely (writing succeeds):
\Revolt\EventLoop::defer(function () {
\Amp\File\write('/code/out', 'contents');
});
\Revolt\EventLoop::run();
The same version without defer()
works fine:
\Amp\File\write('/code/out', 'contents');
\Revolt\EventLoop::run();
Aaron Piotrowski commented
I believe this was fixed with amphp/parallel@v2.2.5
. If not, feel free to repoen.