MCPcopy Create free account
hub / github.com/cloudconvert/cloudconvert-cli / stopWaiting

Function stopWaiting

src/job.ts:167–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 const isCancelled = (): boolean => cancellationSignal?.aborted ?? false;
166
167 const stopWaiting = (): void => {
168 if (settled) {
169 return;
170 }
171
172 settled = true;
173 stopPolling();
174 cancellationSignal?.removeEventListener('abort', stopWaiting);
175 };
176
177 const finishJob = (finishedJob: Job): void => {
178 if (isSettled() || isCancelled()) {

Callers 2

finishJobFunction · 0.85
failJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected