toothpick-runtime / toothpick / Toothpick / closeScope

closeScope

open static fun closeScope(name: Any): Unit

Detach a scope from its parent, this will trigger the garbage collection of this scope and it's sub-scopes if they are not referenced outside of Toothpick.

Parameters

name - the name of the scope to close.