Skip to main content

push_deadline

Function push_deadline 

Source
pub fn push_deadline(environment: &[(OsString, OsString)]) -> Duration
Expand description

What: The push deadline: the environment’s value, or the default. Why: A person may need a longer deadline on a slow link or a shorter one on a flaky one.

In TS you’d write (pseudocode):

const deadlineMs = secondsOf(env.CLI_GIT_PUSH_DEADLINE_SECONDS) ?? DEFAULT_MS;