Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

OBSOLETE

Use Fake.Core.TaskRunner instead (open Fake.Core and use 'TaskRunner')

TaskRunnerHelper

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

Functions and values

Function or valueDescription
runWithRetries f retries
Signature: f:(unit -> 'a) -> retries:int -> 'a
Type parameters: 'a Attributes:
[<Obsolete("Use Fake.Core.TaskRunner instead (open Fake.Core and use 'TaskRunner')")>]
OBSOLETE

Use Fake.Core.TaskRunner instead (open Fake.Core and use 'TaskRunner')

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

Parameters

  • f - This function will be started.
  • retries - A retry limit.
waitFor f timeout testMS timeoutF
Signature: f:(unit -> bool) -> timeout:TimeSpan -> testMS:int -> timeoutF:(unit -> unit) -> TimeSpan
Attributes:
[<Obsolete("Use Fake.Core.TaskRunner instead (open Fake.Core and use 'TaskRunner')")>]
OBSOLETE

Use Fake.Core.TaskRunner instead (open Fake.Core and use 'TaskRunner')

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

Parameters

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