Skip to content
Snippets Groups Projects

Trap render context inside a fiber.

Open catch requested to merge issue/drupal-3518179:3518179-pass-rendercontext-around into 11.x
1 unresolved thread

Closes #3518179

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
603 $fiber = new \Fiber(function () use ($callable) {
604 return $callable();
605 });
606 $running = TRUE;
607 $fiber->start();
608 $result = NULL;
609 while ($running) {
610 if ($fiber->isSuspended()) {
611 $parent_fiber = \Fiber::getCurrent();
612 if ($parent_fiber !== NULL) {
613 $this->setCurrentRenderContext($previous_context);
614 $parent_fiber->suspend();
615 $this->setCurrentRenderContext($context);
616 }
617 $fiber->resume();
618 if ($parent_fiber === NULL);
  • catch added 74 commits

    added 74 commits

    Compare with previous version

  • catch added 1 commit

    added 1 commit

    • 8309ba62 - Trap render context inside a fiber.

    Compare with previous version

  • catch added 100 commits

    added 100 commits

    Compare with previous version

  • catch added 27 commits

    added 27 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading