decord/source/6362_notifyEventProcessors.js

47 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6362
2026-07-27 11:26:19 +00:00
// Function ID: 57231
2026-07-23 10:11:24 +00:00
// Name: notifyEventProcessors
2026-07-25 08:10:48 +00:00
// Dependencies: [6335, 6339, 6311, 6318]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 6362 (notifyEventProcessors)
2026-07-23 10:11:24 +00:00
const require = arg1;
let dependencyMap = arg6;
function notifyEventProcessors(arg0, arg1, arg2) {
const _require = arg0;
let dependencyMap = arg1;
let closure_2 = arg2;
let num = 0;
if (arguments.length > 3) {
num = 0;
if (undefined !== arguments[3]) {
num = arguments[3];
}
}
2026-07-25 08:10:48 +00:00
return new _require(6335).SyncPromise((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
const dependencyMap = arg0;
if (null !== dependencyMap2) {
if ("function" === typeof tmp) {
const _Object = Object;
const tmpResult = tmp(Object.assign({}, dependencyMap2), callback);
if (tmp2) {
2026-07-25 08:10:48 +00:00
const logger = dependencyMap(6311).logger;
2026-07-23 10:11:24 +00:00
const _HermesInternal = HermesInternal;
logger.log("Event processor \"" + tmp.id + "\" dropped event");
}
2026-07-25 08:10:48 +00:00
tmp2 = dependencyMap(6339).DEBUG_BUILD && tmp.id && null === tmpResult;
2026-07-23 10:11:24 +00:00
if (obj.isThenable(tmpResult)) {
tmpResult.then((arg0) => callback(closure_0, arg0, outer1_2, outer1_3 + 1).then(closure_0)).then(null, arg1);
const nextPromise = tmpResult.then((arg0) => callback(closure_0, arg0, outer1_2, outer1_3 + 1).then(closure_0));
} else {
const promise = callback(dependencyMap, tmpResult, callback, num + 1);
callback(dependencyMap, tmpResult, callback, num + 1).then(arg0).then(null, arg1);
const nextPromise2 = callback(dependencyMap, tmpResult, callback, num + 1).then(arg0);
}
2026-07-25 08:10:48 +00:00
obj = dependencyMap(6318);
2026-07-23 10:11:24 +00:00
}
}
arg0(dependencyMap2);
});
}
arg5.notifyEventProcessors = notifyEventProcessors;