mirror of
https://github.com/danog/amp.git
synced 2024-12-13 09:57:25 +01:00
12 lines
261 B
PHP
12 lines
261 B
PHP
|
<?php
|
||
|
|
||
|
interface Awaitable
|
||
|
{
|
||
|
/**
|
||
|
* Register a callback to be invoked when the awaitable is resolved.
|
||
|
*
|
||
|
* @param callable(?Throwable $exception, mixed $value):void $onResolve
|
||
|
*/
|
||
|
public function onResolve(callable $onResolve): void;
|
||
|
}
|