mirror of
https://github.com/danog/amp.git
synced 2024-12-11 17:09:40 +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;
|
|
}
|