Description
createClient has an option to pass a signal:
const client = createClient<paths>({
baseUrl,
signal: AbortSignal.timeout(18000)
});
However, I think passing AbortSignal.timeout to this creates a timeout from the point of calling createClient rather than at the point of each request.
Proposal
Should the signal option of createClient accept a function that returns a signal, so that it can be recreated for each request?
Extra
Description
createClient has an option to pass a signal:
However, I think passing AbortSignal.timeout to this creates a timeout from the point of calling createClient rather than at the point of each request.
Proposal
Should the signal option of createClient accept a function that returns a signal, so that it can be recreated for each request?
Extra