created At Start
Mark this definition to be created eagerly at startup. Used within withOptions { } block.
Only applicable to singleton definitions. The instance will be created immediately when the module is loaded, rather than lazily on first access.
Example:
single { DatabaseConnection() } withOptions {
createdAtStart()
}Content copied to clipboard