LazyModule

class LazyModule(moduleInitializer: () -> Module) : Lazy<Module>

Koin Lazy Module - an implementation of Lazy<Module>.

Accepts a lambda that initializes a Module via lazy() using LazyThreadSafetyMode.NONE as thread-safety mode.

Author

Chris Paleopanos

Arnaud Giuliani

Parameters

moduleInitializer

a lambda that will be used to initialize a Module lazily

Constructors

Link copied to clipboard
constructor(moduleInitializer: () -> Module)

Properties

Link copied to clipboard
open override val value: Module

Functions

Link copied to clipboard
open override fun isInitialized(): Boolean
Link copied to clipboard
operator fun plus(others: List<LazyModule>): List<LazyModule>

Adds and returns this and others as a list of Lazy<Module>

operator fun plus(other: LazyModule): List<LazyModule>

Adds and returns this and other as a list of Lazy<Module>