For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

JavaScript: abortSignal

Set the AbortSignal for the fetch request.

Parameters

Examples

Aborting requests in-flight

const ac = new AbortController()

const { data, error } = await supabase
  .from('very_big_table')
  .select()
  .abortSignal(ac.signal)

// Abort the request after 100 ms
setTimeout(() => ac.abort(), 100)

Set a timeout

const { data, error } = await supabase
  .from('very_big_table')
  .select()
  .abortSignal(AbortSignal.timeout(1000 /* ms */))