|
@@ 415-420 (lines=6) @@
|
| 412 |
|
throw $result; |
| 413 |
|
} elseif ($parent_hash === 'async') { // Co::async() complete? |
| 414 |
|
$this->unsetTree($hash); // No more needed |
| 415 |
|
} elseif ($parent && !$this->value_to_children[$parent_hash]) { // Generator complete? |
| 416 |
|
$this->unsetTree($hash); // No more needed |
| 417 |
|
$result = $this->tree[$parent_hash]; |
| 418 |
|
$parent->send($result); |
| 419 |
|
$this->updateGenerator($parent); |
| 420 |
|
} |
| 421 |
|
} |
| 422 |
|
|
| 423 |
|
/** |
|
@@ 476-482 (lines=7) @@
|
| 473 |
|
$this->unsetTable($hash); |
| 474 |
|
$this->unsetTree($hash); |
| 475 |
|
$enqueued = $this->initialize($value, $parent_hash, $keylist); |
| 476 |
|
if (!$enqueued && $parent && !$this->value_to_children[$parent_hash]) { // Generator complete? |
| 477 |
|
// Traverse parent stack. |
| 478 |
|
$next = $this->tree[$parent_hash]; |
| 479 |
|
$this->unsetTree($parent_hash); |
| 480 |
|
$parent->send($next); |
| 481 |
|
$this->updateGenerator($parent); |
| 482 |
|
} |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
/** |