mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Recreate watcher if it has been triggered
This commit is contained in:
parent
79039cddcb
commit
dd303dbc90
@ -42,6 +42,10 @@ final class Coroutine implements Promise {
|
|||||||
public function __construct(\Generator $generator) {
|
public function __construct(\Generator $generator) {
|
||||||
$this->generator = $generator;
|
$this->generator = $generator;
|
||||||
$this->timeoutWatcher = Loop::delay(1000, function () {
|
$this->timeoutWatcher = Loop::delay(1000, function () {
|
||||||
|
$this->timeoutWatcher = Loop::delay(1000, function () {
|
||||||
|
fwrite(STDERR, $this->trace . "\r\n");
|
||||||
|
});
|
||||||
|
|
||||||
fwrite(STDERR, $this->trace . "\r\n");
|
fwrite(STDERR, $this->trace . "\r\n");
|
||||||
});
|
});
|
||||||
$this->trace = formatStacktrace(\debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS));
|
$this->trace = formatStacktrace(\debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS));
|
||||||
|
Loading…
Reference in New Issue
Block a user