GraphMine

graphmine-core / io.github.sof3.graphmine.scope / BaseScope

BaseScope

open class BaseScope : Scope

Basic implementation of BaseScope

Constructors

<init> BaseScope(klass: KClass<out Any>, name: String, parent: BaseScope? = null)
BaseScope(klass: KClass<out Any>, parent: BaseScope? = null)BaseScope(name: String, parent: BaseScope? = null)
Basic implementation of BaseScope

Properties

coroutineContext open val coroutineContext: CoroutineContext
isDisposed open var isDisposed: Boolean
whether the scope has been disposed
name val name: String
the scope name
parent val parent: BaseScope?
the parent scope (if any)

Functions

addOnDispose open fun addOnDispose(fn: () -> Unit): Unit
Adds an action to execute when the scope is disposed
dispose open fun dispose(): Unit
Marks the scope as disposed.