graphmine-core / io.github.sof3.graphmine.scope / Scope
interface Scope : CoroutineScope
A Scope represents some period of persistence. Features are enabled only during the scope is not disposed. Builtin scopes include:
Plugins may create their own scopes too, e.g. a Hunger Games plugin may create a scope that lasts during the Hunger Games tournament
A scope is also a coroutine scope. Coroutines may be started from the scope.
isDisposed | abstract val isDisposed: Boolean whether the scope has been disposed |
name | abstract val name: String |
addOnDispose | abstract fun addOnDispose(fn: () -> Unit ): Unit Adds an action to execute when the scope is disposed |
BaseScope | open class BaseScope : Scope Basic implementation of BaseScope |
Server | class Server : Scope , HasLogger The Server should be the object that links up different components of the server. |