mirror of
https://github.com/danog/amp.git
synced 2025-01-23 05:41:25 +01:00
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;
|
||
|
}
|