watch File
Returns a child config containing values from specified file, and reloads values when file content has been changed.
Return
a child config containing values from watched file
Parameters
specified file
delay to observe between every check. The default value is 5.
time unit of delay. The default value is TimeUnit.SECONDS.
context of the coroutine. The default value is Dispatchers.Default.
whether the source is optional
function invoked after the updated file is loaded
Returns a child config containing values from specified file path, and reloads values when file content has been changed.
Return
a child config containing values from watched file
Parameters
specified file path
delay to observe between every check. The default value is 5.
time unit of delay. The default value is TimeUnit.SECONDS.
context of the coroutine. The default value is Dispatchers.Default.
whether the source is optional
function invoked after the updated file is loaded