UNPKG
bot18
Version:
latest (0.4.31)
0.4.31
0.4.30
0.4.29
0.4.28
0.4.27
0.4.26
0.4.25
0.4.24
0.4.23
0.4.20
0.4.19
0.4.18
0.4.17
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.3.3
0.3.2
0.3.1
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.9
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
bot18.net
carlos8f/bot18
bot18
/
node_modules
/
promise
/
setimmediate
/
done.js
14 lines
(11 loc)
•
314 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
var
Promise
=
require
(
'./core.js'
);
module
.
exports
=
Promise
;
Promise
.
prototype
.
done
=
function
(
onFulfilled, onRejected
) {
var
self =
arguments
.
length
?
this
.
then
.
apply
(
this
,
arguments
) :
this
; self.
then
(
null
,
function
(
err
) {
setTimeout
(
function
(
) {
throw
err; },
0
); }); };