{"version":"2.1.233","anchor":"shutdown-flushing-goes-through-a-drain-registry","canonical_anchor":"shutdown-flushing-goes-through-a-drain-registry","heading":"Shutdown flushing goes through a drain registry","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233\/e\/shutdown-flushing-goes-through-a-drain-registry","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233","markdown":"### Shutdown flushing goes through a drain registry\n\nExit now waits on one drain of registered flushers instead of a hardcoded timeout race.\n\n**What**\n\nTwo exit paths dropped their hardcoded sequence of racing one flush against a one-second timeout and then running the second. Both now await a single drain over whatever flushers registered themselves.\n\n**Evidence**\n\n`async function Pbr() {\\n await H1c.drain();\\n}`\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 1\/5"}