FAKE - F# Make - A DSL for build tasks and more FAKE
6.1.3

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

TaskRunner Module

Contains a helper which can be used to implement timeouts and retries.

Functions and values

Function or value Description

runWithRetries f retries

Full Usage: runWithRetries f retries

Parameters:
    f : unit -> 'a - This function will be started.
    retries : int - A retry limit.

Returns: 'a

Retries the given function until a retry limit is reached or the function succeeds without exception.

f : unit -> 'a

This function will be started.

retries : int

A retry limit.

Returns: 'a

waitFor f timeout testMS timeoutF

Full Usage: waitFor f timeout testMS timeoutF

Parameters:
    f : unit -> bool - This function will be started.
    timeout : TimeSpan - A System.TimeSpan representing the timeout.
    testMS : int - An interval at which FAKE checks if the function has succeeded.
    timeoutF : unit -> unit - This function will be run if the timeout has been reached.

Returns: TimeSpan

Waits until the given function returns true or the timeout is reached.

f : unit -> bool

This function will be started.

timeout : TimeSpan

A System.TimeSpan representing the timeout.

testMS : int

An interval at which FAKE checks if the function has succeeded.

timeoutF : unit -> unit

This function will be run if the timeout has been reached.

Returns: TimeSpan