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
By making this change `async()` can now also by used in event loop callbacks such as timers:
```php
Loop::addTimer(0.01, async(function () {
echo 'Sleeping for one second';
await(asleep(1));
echo 'Waking up again';
}));
```
With this change, current `async()` usage changes from:
```php
async(function () {
//
});
```
To:
```php
async(function () {
//
})();
```
0 commit comments