1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/lib/Internal/FutureIteratorQueue.php
Aaron Piotrowski 7e30ee0c2c
Import Future
Co-authored-by: Niklas Keller <me@kelunik.com>
2021-08-29 12:18:05 -05:00

28 lines
396 B
PHP

<?php
namespace Amp\Internal;
use Amp\Future;
use Revolt\EventLoop\Suspension;
/**
* @template Tk
* @template Tv
*
* @internal
*/
final class FutureIteratorQueue
{
/**
* @var list<array{Tk, Future<Tv>}>
*/
public array $items = [];
/**
* @var array<string, FutureState<Tv>>
*/
public array $pending = [];
public ?Suspension $suspension = null;
}