We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca46a1 commit cfcda4fCopy full SHA for cfcda4f
src/task.ts
@@ -97,9 +97,10 @@ class TaskClient {
97
while (Date.now() - startingTime < timeOutMs) {
98
const response = await this.getTask(taskUid)
99
if (
100
- ![TaskStatus.TASK_ENQUEUED, TaskStatus.TASK_PROCESSING].includes(
101
- response.status
102
- )
+ !([
+ TaskStatus.TASK_ENQUEUED,
+ TaskStatus.TASK_PROCESSING,
103
+ ] as readonly string[]).includes(response.status)
104
)
105
return response
106
await sleep(intervalMs)
0 commit comments