I am using @forge/api to get issues from jira. Because of there are more than 5000 issues i should make request in parallel. So that you can imagine i make a 200 request in parallel.
I am asking that after i make request without waiting the response, i should cancel the request.
In javascript fetch there is a way to abort it, using Abortcontroller and signal
But when i use the abort controller in forge/api it gives error
Expected signal to be an instance of AbortSignal
const controller = new AbortController();
const response = await api
.asApp()
.requestJira(
route`/rest/api/3/project/search?expand=description,lead,issueTypes,url,projectKeys,permissions,insight&startAt=${startAt}&maxResults=500`,
{
signal:controller.signal,
headers: {
Accept: "application/json",
},
}
);