watch Url
Returns a child config containing values from specified url, and reloads values periodically.
Return
a child config containing values from specified url
Parameters
specified url
reload period. The default value is 5.
time unit of reload period. 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 URL is loaded
Returns a child config containing values from specified url string, and reloads values periodically.
Return
a child config containing values from specified url string
Parameters
specified url string
reload period. The default value is 5.
time unit of reload period. 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 URL is loaded