aboutsummaryrefslogtreecommitdiff
path: root/utils/nonPooledThread.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nonPooledThread.js')
-rw-r--r--utils/nonPooledThread.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/nonPooledThread.js b/utils/nonPooledThread.js
index 2061db1..4720700 100644
--- a/utils/nonPooledThread.js
+++ b/utils/nonPooledThread.js
@@ -1,14 +1,14 @@
let Executors = Java.type("java.util.concurrent.Executors")
class NonPooledThread {
- constructor(fun) {
- this.fun = fun
- this.executor = Executors.newSingleThreadExecutor()
- }
+ constructor(fun) {
+ this.fun = fun
+ this.executor = Executors.newSingleThreadExecutor()
+ }
- start() {
- this.executor.execute(this.fun)
- }
+ start() {
+ this.executor.execute(this.fun)
+ }
}
export default NonPooledThread \ No newline at end of file