mirror of
https://github.com/danog/amp.git
synced 2024-12-03 18:07:57 +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;
|
|
}
|