13trait SkuDeferredCalculations
15 private static bool $isBackgroundJobAdded =
false;
25 return in_array($action->
getName(), $actions,
true);
50 self::addBackgroundJob();
53 private static function addBackgroundJob(): void
55 if (self::$isBackgroundJobAdded)
59 self::$isBackgroundJobAdded =
true;
61 $callback = Closure::fromCallable([
static enableDeferredCalculation()
static disableDeferredCalculation()
isActionWithDefferedCalculation(Action $action)
processAfterDeferredCalculationAction()
processBeforeDeferredCalculationAction()