mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Add delay option
This commit is contained in:
parent
8fce5218db
commit
1dfe5e4956
2 changed files with 9 additions and 0 deletions
|
@ -90,4 +90,10 @@ utils.filterPlaylists = function (arr, include = '', exclude = '') {
|
|||
return arr
|
||||
}
|
||||
|
||||
utils.sleep = function (ms) {
|
||||
return function (x) {
|
||||
return new Promise(resolve => setTimeout(() => resolve(x), ms))
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = utils
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue