setTimeout static method
Implementation
static int setTimeout(int? timeout) {
if (timeout == null || timeout < ConstantsUtil.ATHM_MIN_TIMEOUT) {
return ConstantsUtil.ATHM_MIN_TIMEOUT;
} else if (timeout > ConstantsUtil.ATHM_MAX_TIMEOUT) {
return ConstantsUtil.ATHM_MAX_TIMEOUT;
} else {
return timeout;
}
}