diff options
| author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-17 23:47:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-17 23:47:59 +0800 |
| commit | 364caae9b6e47b8d5e1bab950aebc5b35bc4baad (patch) | |
| tree | e554b5859e0135b8f644986768306d5f3ee5683e /utils/nonPooledThread.js | |
| parent | eb8bc77bf2d790e97fe793eb96ad77e1b4d2bbbf (diff) | |
| parent | 12f3a81cf12c6ffc24a7f2a0e8102dfba3fddf82 (diff) | |
| download | SoopyV2-364caae9b6e47b8d5e1bab950aebc5b35bc4baad.tar.gz SoopyV2-364caae9b6e47b8d5e1bab950aebc5b35bc4baad.tar.bz2 SoopyV2-364caae9b6e47b8d5e1bab950aebc5b35bc4baad.zip | |
Merge pull request #71 from Soopyboo32/Babel
Diffstat (limited to 'utils/nonPooledThread.js')
| -rw-r--r-- | utils/nonPooledThread.js | 14 |
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 |
