Hi there,
Is there a way to run multiple invoke functions in parallel?
For example I have:
await invoke("getStorage", {name: "sastConfiguration"}).then(setSastConfiguration);
await invoke("getStorage", {name: "dastConfiguration"}).then(setDastConfiguration);
await invoke("getAssetsByType", {type: 'application'}).then(setSASTAssets);
await invoke("getAssetsByType", {type: 'site'}).then(setDASTAssets);
await invoke("getAllJiraProjects").then(setJiraProjects);
await invoke("getAllJiraUsers").then(setJiraUsers);
await invoke("getAllJiraGroups").then(setJiraGroups);
await invoke("getAllSentinelGroups").then(setSentinelGroups);
which of course take a lot of time. Can i use Promises.all....
or what else would you recommend?
Thank you