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

12 lines
261 B
PHP
Raw Normal View History

2020-09-24 18:52:22 +02:00
<?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;
}