• Preparing search index...
  • The search index is not available
Foundry Virtual Tabletop - API Documentation - Version 12
  • Foundry Virtual Tabletop - API Documentation - Version 12
  • foundry
  • utils
  • fetchWithTimeout

Function fetchWithTimeout

  • fetchWithTimeout(url, data?, __namedParameters?): Promise<Response>
  • A wrapper method around fetch that attaches an AbortController signal to the fetch call for clean timeouts

    Parameters

    • url: string

      The URL to make the Request to

    • data: Object = {}

      The data of the Request

    • __namedParameters: number = {}

    Returns Promise<Response>

    See

    https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal#aborting_a_fetch_with_timeout_or_explicit_abort

    Throws

Settings

Member Visibility

Theme

Foundry Virtual Tabletop - API Documentation - Version 12
  • Loading...