diff options
author | 2017-12-05 17:12:45 +0100 | |
---|---|---|
committer | 2017-12-05 17:12:45 +0100 | |
commit | cf0f8b382001d14fbfecf04f8cd176f8dced0d52 (patch) | |
tree | ba4ef0bc5de1924c7a6fc558ada24588aa04aa41 /src/helpers/async-helpers.js | |
parent | Merge pull request #400 from meetfranz/feature/delete-account (diff) | |
download | ferdium-app-cf0f8b382001d14fbfecf04f8cd176f8dced0d52.tar.gz ferdium-app-cf0f8b382001d14fbfecf04f8cd176f8dced0d52.tar.zst ferdium-app-cf0f8b382001d14fbfecf04f8cd176f8dced0d52.zip |
Added debug info and sleep in between actions
Diffstat (limited to 'src/helpers/async-helpers.js')
-rw-r--r-- | src/helpers/async-helpers.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/async-helpers.js b/src/helpers/async-helpers.js new file mode 100644 index 000000000..c39651001 --- /dev/null +++ b/src/helpers/async-helpers.js | |||
@@ -0,0 +1,5 @@ | |||
1 | // eslint-disable import/prefer-default-export | ||
2 | |||
3 | export function sleep(ms = 0) { | ||
4 | return new Promise(r => setTimeout(r, ms)); | ||
5 | } | ||