()
| 706 | |
| 707 | function getActiveLifecycle(): GenerationContext | null { |
| 708 | if (runtimeLifecycle && !runtimeLifecycle.signal.aborted && runtimeGeneration === getCurrentGeneration()) { |
| 709 | return runtimeLifecycle; |
| 710 | } |
| 711 | |
| 712 | const current = tryGetCurrentGenerationContext(); |
| 713 | if (!current || current.signal.aborted) return null; |
| 714 | runtimeLifecycle = current; |
| 715 | runtimeGeneration = current.generation; |
| 716 | return current; |
no test coverage detected