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:
parent
7e16326871
commit
de905a6104
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user