update abstract pool

This commit is contained in:
prolic 2018-06-29 22:26:44 +08:00
parent bb0ea9d687
commit f1f353039c
No known key found for this signature in database
GPG Key ID: 29722F9F48E9DE59

View File

@ -28,15 +28,6 @@ abstract class AbstractPool implements Pool
/** @var \SplObjectStorage */
private $connections;
/** @var Promise|null */
private $promise;
/** @var Deferred|null */
private $deferred;
/** @var int Number of pending connections. */
private $pending = 0;
/** @var bool */
private $closed = false;
@ -52,6 +43,15 @@ abstract class AbstractPool implements Pool
/** @var int */
private $lastUsedAt;
/** @var Promise|null */
protected $promise;
/** @var Deferred|null */
protected $deferred;
/** @var int Number of pending connections. */
protected $pending = 0;
/**
* @param ConnectionConfig $config
* @param int $maxConnections