MCPcopy
hub / github.com/ocsjs/ocsjs / waitForVideoJob

Function waitForVideoJob

packages/scripts/src/projects/zhs.ts:836–846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

834 }, 10 * 1000);
835
836 const waitForVideoJob = () => {
837 return new Promise<void>((resolve, reject) => {
838 if (processor.hasJob()) {
839 resolve();
840 } else {
841 setTimeout(() => {
842 resolve(waitForVideoJob());
843 }, 200);
844 }
845 });
846 };
847
848 await waitForVideoJob();
849

Callers 1

oncompleteFunction · 0.85

Calls 1

hasJobMethod · 0.65

Tested by

no test coverage detected