{"version":"2.1.246","anchor":"task-cleanup-gained-a-first-pass-and-a-caller-supplied-stop-","canonical_anchor":"task-cleanup-gained-a-first-pass-and-a-caller-supplied-stop-","heading":"Task cleanup gained a first pass and a caller-supplied stop test","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246\/e\/task-cleanup-gained-a-first-pass-and-a-caller-supplied-stop-","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246","markdown":"### Task cleanup gained a first pass and a caller-supplied stop test\n\nShutdown kills one class of tasks first and callers can limit what else gets torn down.\n\n**What**\n\nShutdown now kills one class of running tasks before the main cleanup loop, and callers can pass a predicate to limit which tasks the loop tears down. Which tasks the first pass targets is not identifiable from the bundle.\n\n**Evidence**\n\n`shouldStop`\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5"}