{"version":"2.1.271","anchor":"new-plugin-hooks-waitsleep-primitive-with-input-validatio","canonical_anchor":"new-plugin-hooks-waitsleep-primitive-with-input-validatio","heading":"New plugin-hooks 'wait\/sleep' primitive with input validation","tier":"use","area":"Plugin Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/new-plugin-hooks-waitsleep-primitive-with-input-validatio","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### New plugin-hooks 'wait\/sleep' primitive with input validation\n\nPlugin hooks gained a 'wait' primitive that pauses for a validated number of milliseconds\n\n**What**\n\nA new operation was added to the plugin hooks API that lets a hook pause execution for a given number of milliseconds, specified as `{ ms }`. The value is validated to ensure it's a non-negative number before the wait happens; an invalid value produces an error naming the bad input.\n\n**Why**\n\nThis gives plugin authors a built-in way to introduce a deliberate delay in a hook, with validation that catches bad input early instead of failing unpredictably later.\n\n- Area: Plugin Hooks\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}