1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00
amp/stubs/Awaitable.php
2020-09-24 12:53:32 -05:00

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;
}