• Preparing search index...
  • The search index is not available
Documentation - v0.0.15
  • Documentation
  • @fuman/fetch
  • index
  • ffetchAddons
  • timeout

Function timeout

  • timeout(): FfetchAddon<TimeoutAddon, object>
  • ffetch addon that allows setting a timeout for the request. when the timeout is reached, the request will be aborted and the promise will be rejected with a TimeoutError

    note: it is important to put this addon as the last one, otherwise other middlewares might be counted towards the timeout

    Returns FfetchAddon<TimeoutAddon, object>

    • Defined in packages/_standalone/fetch/src/addons/timeout.ts:62

Settings

Member Visibility
Documentation - v0.0.15
  • Loading...

Generated using TypeDoc