mirror of
https://github.com/danog/amp.git
synced 2024-12-11 17:09:40 +01:00
10 lines
158 B
PHP
10 lines
158 B
PHP
|
<?php
|
||
|
|
||
|
require __DIR__ . '/../../vendor/autoload.php';
|
||
|
|
||
|
use Amp\Delayed;
|
||
|
use function Amp\await;
|
||
|
|
||
|
$result = await(new Delayed(1000, 42));
|
||
|
\var_dump($result);
|