This repository was archived by the owner on Jul 30, 2024. It is now read-only.
File tree 2 files changed +17
-0
lines changed
app/current/src/main/scala/io/scalajs/nodejs/timers 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1
1
package io .scalajs .nodejs .timers
2
2
3
+ import com .thoughtworks .enableIf
3
4
import io .scalajs .nodejs .clearImmediate
4
5
5
6
import scala .scalajs .js
@@ -12,6 +13,14 @@ trait Immediate extends js.Object {
12
13
13
14
def _onImmediate : js.Function = js.native
14
15
16
+ @ enableIf(io.scalajs.nodejs.CompilerSwitches .gteNodeJs12)
17
+ def hasRef (): Boolean = js.native
18
+
19
+ @ enableIf(io.scalajs.nodejs.CompilerSwitches .gteNodeJs10)
20
+ def ref (): Immediate = js.native
21
+
22
+ @ enableIf(io.scalajs.nodejs.CompilerSwitches .gteNodeJs10)
23
+ def unref (): Immediate = js.native
15
24
}
16
25
17
26
/**
Original file line number Diff line number Diff line change 1
1
package io .scalajs .nodejs .timers
2
2
3
+ import com .thoughtworks .enableIf
3
4
import io .scalajs .nodejs .clearTimeout
4
5
5
6
import scala .scalajs .js
@@ -15,7 +16,14 @@ trait Timeout extends js.Object {
15
16
* @return true, if the timeout has already been called
16
17
*/
17
18
def _called : Boolean = js.native
19
+ @ enableIf(io.scalajs.nodejs.CompilerSwitches .gteNodeJs12)
20
+ def hasRef (): Boolean = js.native
18
21
22
+ @ enableIf(io.scalajs.nodejs.CompilerSwitches .gteNodeJs10)
23
+ def refresh (): Timeout = js.native
24
+
25
+ def ref (): Timeout = js.native
26
+ def unref (): Timeout = js.native
19
27
}
20
28
21
29
/**
You can’t perform that action at this time.
0 commit comments