MCPcopy
hub / github.com/QwikDev/qwik / destroyTask

Function destroyTask

packages/qwik/src/core/use/use-task.ts:798–806  ·  view source on GitHub ↗
(task: SubscriberEffect)

Source from the content-addressed store, hash-verified

796};
797
798export const destroyTask = (task: SubscriberEffect) => {
799 if (task.$flags$ & TaskFlagsIsCleanup) {
800 task.$flags$ &= ~TaskFlagsIsCleanup;
801 const cleanup = task.$qrl$;
802 (cleanup as Function)();
803 } else {
804 cleanupTask(task);
805 }
806};
807
808const useRunTask = (
809 task: SubscriberEffect,

Callers 2

_pauseFromContextsFunction · 0.90
cleanupContextFunction · 0.90

Calls 1

cleanupTaskFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…