-
The timer callback now receives a
Timer
instance, with the following useful methods:cancel
isActive
setData($data)
getData
And some other less common ones. These are prefered over
LoopInterface::cancelTimer
andLoopInterface::isTimerActive
. -
You can no longer return a boolean from a periodic timer callback to abort it.
-
HttpClient\*ConnectionManager
has been moved toSocketClient\*Connector
, and thegetConnection
method has been renamed tocreate
.Before:
$connectionManager->getConnection($host, $port);
After:
$connector->create($host, $port);