decord/source/6390_getAsyncContextStrategy.js
2026-07-31 08:44:05 +00:00

23 lines
844 B
JavaScript

// Module ID: 6390
// Function ID: 6391
// Name: getAsyncContextStrategy
// Dependencies: [6389, 6391]
// Module 6390 (getAsyncContextStrategy)
const require = arg1;
const dependencyMap = arg6;
arg5.getAsyncContextStrategy = function getAsyncContextStrategy(arg0) {
const sentryCarrier = require(6389) /* getMainCarrier */.getSentryCarrier(arg0);
if (sentryCarrier.acs) {
let acs = sentryCarrier.acs;
} else {
acs = require(6391) /* withScope */.getStackAsyncContextStrategy();
const tmpResult = require(6391) /* withScope */;
}
return acs;
};
arg5.setAsyncContextStrategy = function setAsyncContextStrategy(acs) {
const mainCarrier = require(6389) /* getMainCarrier */.getMainCarrier();
const obj = require(6389) /* getMainCarrier */;
require(6389) /* getMainCarrier */.getSentryCarrier(mainCarrier).acs = acs;
};