loadSuspend

suspend fun loadSuspend(): T

Loads the configuration from the file as a suspending function.

This method reads the YAML file using Dispatchers.IO, maps it to an instance of type T, and then saves it back to the file.

Return

the loaded configuration instance of type T