mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 07:18:57 +01:00
Fully make use of yield from and async-friendly stack traces
This commit is contained in:
parent
2ba80af424
commit
3b8334e073
@ -87,9 +87,9 @@ final class Coroutine implements Promise, \ArrayAccess
|
||||
} else {
|
||||
$yielded = $this->generator->send($yielded);
|
||||
}
|
||||
if ($yielded instanceof self) {
|
||||
$yielded->parentCoroutine = $this;
|
||||
}
|
||||
}
|
||||
if ($yielded instanceof self) {
|
||||
$yielded->parentCoroutine = $this;
|
||||
}
|
||||
} catch (\Throwable $exception) {
|
||||
$this->fail($exception);
|
||||
|
Loading…
Reference in New Issue
Block a user