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: Booleanwhether the scope has been disposed |
| name | abstract val name: String |
| addOnDispose | abstract fun addOnDispose(fn: () -> Unit): UnitAdds an action to execute when the scope is disposed |
| BaseScope | open class BaseScope : ScopeBasic implementation of BaseScope |
| Server | class Server : Scope, HasLoggerThe Server should be the object that links up different components of the server. |