toothpick-runtime / toothpick / Toothpick / openRootScope
openRootScope
open static fun openRootScope(): Scope
Returns or opens a root scope as follows:
- if there's an existing scope tree the root scope of that tree;
- creates a default root scope if there's none;
- throws an exception if there are multiple scope trees (e.g. a forest);
Return
the root scope.