Skip to main content

Signature

  • run: Executes a single task
  • all: Executes multiple tasks with concurrency control
  • runOrThrow: Executes a single task and throws the result error if it fails
  • allOrThrow: Executes multiple tasks and throws the first failure
  • partitionAll: Splits results from all() into successes and failures
  • withConfig: Creates a new instance with merged configuration
  • orThrow: Alias for runOrThrow

Options

  • rules: list of rules to normalize errors
  • fallback: function for unmapped errors
  • toError: custom complete normalizer
  • ignoreAbort: default for aborts
  • mapError: default error transformation
  • circuitBreaker: default circuit breaker configuration

Example