You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not too sure about this, I might be wrong. The examples provided don't use the API correctly, the EventLoop::delay() callback is what gets executed after the delay, it doesn't actually "sleep".
The correct example would be
use Amp\delay;
delay(0.5);
echo "...";
OR
use Revolt\EventLoop;
EventLoop::Delay(0.5, fn () => echo "...");
The text was updated successfully, but these errors were encountered:
revolt-event-dispatcher/examples/basic-usage.php
Line 26 in 3d88082
I'm not too sure about this, I might be wrong. The examples provided don't use the API correctly, the EventLoop::delay() callback is what gets executed after the delay, it doesn't actually "sleep".
The correct example would be
OR
The text was updated successfully, but these errors were encountered: