mirror of
https://github.com/danog/amp.git
synced 2024-12-04 18:38:17 +01:00
11 lines
241 B
PHP
11 lines
241 B
PHP
<?php
|
|
|
|
require __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
use Amp\Delayed;
|
|
use function Amp\await;
|
|
|
|
// Note that the closure declares void as a return type, not Promise or Generator.
|
|
$result = await(new Delayed(1000, 42));
|
|
\var_dump($result);
|