aboutsummaryrefslogtreecommitdiff
path: root/utils/nonPooledThread.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
commit431e4fc9d1657a50ebc34b8ac24f9bfaea06417f (patch)
tree5987bb14f38d2999c682970429f34b41eb3e5826 /utils/nonPooledThread.js
parente73f2efdf0f50aa775c540317394d46428e9704f (diff)
downloadSoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.gz
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.bz2
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.zip
Initial move to babel + change fetch to use async/await
Diffstat (limited to 'utils/nonPooledThread.js')
-rw-r--r--utils/nonPooledThread.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/utils/nonPooledThread.js b/utils/nonPooledThread.js
deleted file mode 100644
index 4720700..0000000
--- a/utils/nonPooledThread.js
+++ /dev/null
@@ -1,14 +0,0 @@
-let Executors = Java.type("java.util.concurrent.Executors")
-
-class NonPooledThread {
- constructor(fun) {
- this.fun = fun
- this.executor = Executors.newSingleThreadExecutor()
- }
-
- start() {
- this.executor.execute(this.fun)
- }
-}
-
-export default NonPooledThread \ No newline at end of file