mirror of
https://github.com/danog/amp.git
synced 2025-01-22 21:31:18 +01:00
7e30ee0c2c
Co-authored-by: Niklas Keller <me@kelunik.com>
28 lines
396 B
PHP
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;
|
|
}
|