From 795b6f2ab2a7a58efe63a2710422e76b7a28dd64 Mon Sep 17 00:00:00 2001 From: Ilya Anisimov Date: Wed, 6 Nov 2024 16:00:42 +0300 Subject: [PATCH] stop --- README.md | 1 + package.json | 2 +- src/stop.js | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/stop.js diff --git a/README.md b/README.md index 1c4ce16..8fcd581 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,7 @@ warn() #### promise ```js sleep(ms) +stop() ``` #### renderer diff --git a/package.json b/package.json index 88c2dc6..6ebee05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "helpers", - "version": "0.1.3", + "version": "0.1.4", "description": "shared javascript toolkit", "type": "module", "exports": { diff --git a/src/stop.js b/src/stop.js new file mode 100644 index 0000000..6087eaf --- /dev/null +++ b/src/stop.js @@ -0,0 +1,5 @@ +import noop from 'underscore/modules/noop.js'; + +export function stop() { + return new Promise(noop); +}