decord/source/7616_getAsyncContextStrategy.js
2026-08-25 06:04:03 +00:00

26 lines
821 B
JavaScript

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