UNPKG
@firaenix/bittorrent-protocol
Version:
latest (4.0.1)
4.0.1
3.2.36
3.2.35
3.2.34
3.2.33
3.2.32
3.2.31
3.2.30
3.2.29
3.2.28
3.2.27
3.2.26
3.2.25
3.2.24
3.2.23
3.2.22
3.2.21
3.2.20
3.2.19
3.2.18
3.2.17
3.2.16
3.2.15
3.2.14
3.2.13
3.2.11
3.2.10
3.2.9
3.2.8
3.2.7
3.2.6
3.1.1
Simple, robust, BitTorrent peer wire protocol implementation
firaenix/bittorrent-protocol
@firaenix/bittorrent-protocol
/
lib
/
utils
/
wait.js
9 lines
(8 loc)
•
227 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
wait
=
void
0
;
exports
.
wait
=
function
(
ms
) {
return
new
Promise
(
function
(
resolve, reject
) {
setTimeout
(resolve, ms); }); };