mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 02:47:33 -05:00
Update helper.js
Add sleep function
This commit is contained in:
@@ -249,6 +249,12 @@ helper.filterGroup = function (groupTitle) {
|
||||
return groupTitle
|
||||
}
|
||||
|
||||
helper.sleep = function (ms) {
|
||||
return function (x) {
|
||||
return new Promise(resolve => setTimeout(() => resolve(x), ms))
|
||||
}
|
||||
}
|
||||
|
||||
class Playlist {
|
||||
constructor(data) {
|
||||
this.header = data.header
|
||||
|
||||
Reference in New Issue
Block a user