decord/source/7616_getAsyncContextStrategy.js

27 lines
821 B
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7616
// Function ID: 7617
2026-08-24 06:08:38 +00:00
// Name: getAsyncContextStrategy
2026-08-25 06:04:03 +00:00
// Dependencies: [7615, 7617]
2026-08-24 06:08:38 +00:00
2026-08-25 06:04:03 +00:00
// Module 7616 (getAsyncContextStrategy)
import getMainCarrier from "getMainCarrier" /* 7615 */;
import withScope from "withScope" /* 7617 */;
2026-08-24 06:08:38 +00:00
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;
};