Lines Matching refs:workers
2015 … following methods to create a worker thread, depending on whether the **workers** directory that …
2017 (1) In the FA model, the **workers** and **pages** directories are at the same level.
2020 const workerInstance = new worker.Worker("workers/worker.js", {name:"first worker"});
2022 (2) In the FA model, the **workers** and **pages** directories are at different levels.
2025 const workerInstance = new worker.Worker("../workers/worker.js", {name:"first worker"});
2027 (3) In the stage model, the **workers** and **pages** directories are at the same level.
2030 const workerInstance = new worker.Worker('entry/ets/workers/worker.ts');
2032 (4) In the stage model, the **workers** and **pages** directories are at different levels.
2035 const workerInstance = new worker.Worker('entry/ets/pages/workers/worker.ts');
2037 scriptURL in the stage model — Description of "entry/ets/workers/worker.ts".
2042 Depending on whether the **workers** and **pages** directories are at the same level, you may need …
2044 (1) If the **workers** and **pages** directories are at the same level, the configuration is option…
2050 "workers": [
2051 "./src/main/ets/MainAbility/workers/worker.js"
2060 "workers": [
2061 "./src/main/ets/workers/worker.ts"
2066 (2) If the **workers** and **pages** directories are at different levels, the configuration is mand…
2072 "workers": [
2073 "./src/main/ets/workers/worker.js"
2078 In the stage model (the following assumes that the **workers** directory is under the **pages** dir…
2082 "workers": [
2083 "./src/main/ets/pages/workers/worker.ts"
2101 const worker = new worker.Worker("workers/worker.js");
2106 const worker = new worker.Worker("workers/worker.js");
2122 const worker = new worker.Worker("workers/worker.js");
2139 const worker = new worker.Worker("workers/worker.js");
2156 const worker = new worker.Worker("workers/worker.js");
2171 const worker = new worker.Worker("workers/worker.js");
2186 const worker = new worker.Worker("workers/worker.js");
2203 const worker = new worker.Worker("workers/worker.js");
2218 const worker = new worker.Worker("workers/worker.js");
2235 const worker = new worker.Worker("workers/worker.js");
2252 const worker = new worker.Worker("workers/worker.js");
2269 const worker = new worker.Worker("workers/worker.js");
2286 const worker = new worker.Worker("workers/worker.js");
2311 const worker = new worker.Worker("workers/worker.js");
2334 const worker = new worker.Worker("workers/worker.js");
2359 const worker = new worker.Worker("workers/worker.js");
2382 const worker = new worker.Worker("workers/worker.js");
2406 const worker = new worker.Worker("workers/worker.js");