decord/source/7795_getAsyncContextStrategy.js
2026-08-24 06:08:38 +00:00

26 lines
821 B
JavaScript

// Module ID: 7795
// Function ID: 7796
// Name: getAsyncContextStrategy
// Dependencies: [7794, 7796]
// Module 7795 (getAsyncContextStrategy)
import getMainCarrier from "getMainCarrier" /* 7794 */;
import withScope from "withScope" /* 7796 */;
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;
};