Polls a Photoshop async job until completion
The job result containing a jobId from the initial async response
Polling configuration options
The final job result when succeeded, with type automatically inferred from the job response
If max attempts or timeout is reached
If the job fails
// Type is automatically inferred as MaskObjectsJobApiResponseconst result = await pollPhotoshopJob(maskJob, { axiosRequestConfig: { headers } });// Type is automatically inferred as document result typeconst docResult = await pollPhotoshopJob(docJob, { axiosRequestConfig: { headers } }); Copy
// Type is automatically inferred as MaskObjectsJobApiResponseconst result = await pollPhotoshopJob(maskJob, { axiosRequestConfig: { headers } });// Type is automatically inferred as document result typeconst docResult = await pollPhotoshopJob(docJob, { axiosRequestConfig: { headers } });
Polls a Photoshop async job until completion