1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Correct Pause implementation for use with new trait system

This commit is contained in:
Daniel Lowrey 2015-05-19 14:10:53 -04:00
parent 7e16326871
commit de905a6104

View File

@ -2,7 +2,9 @@
namespace Amp;
class Pause extends PrivatePlaceholder {
class Pause implements Promise {
use Placeholder;
public function __construct($millisecondTimeout, Reactor $reactor = null) {
if ($millisecondTimeout < 1) {
throw new \DomainException(