>
>  await $some limit 5s;
>
Yes, limit is also a good keyword.

And some else examples with "until":
**CancellationExp**:

- A variable of the `Awaitable` interface

```php
    $cancellation = new Future();
    $result = await $coroutine until $cancellation;
```

- A function that returns an Awaitable object

```php
    function getCancellation(): \Async\Awaitable {
        return new Future();
    }

    $result = await $coroutine until getCancellation();
```

- A new coroutine

```php
    $result = await $coroutine until spawn sleep(5);
```

Reply via email to