Lines Matching refs:worker
4 …worker-introduction.md) may execute multiple tasks. The execution duration or returned result of e…
7 The following uses an example in which the worker responds to the "hello world" request for descrip…
14 import { ErrorEvent, MessageEvents, ThreadWorkerGlobalScope, worker } from '@kit.ArkTS';
16 const workerPort: ThreadWorkerGlobalScope = worker.workerPort;
17 // The worker receives the message from the host thread and performs corresponding processing.
25 …worker object is created in the host thread. When the button is clicked, the postmessage function …
29 import { worker } from '@kit.ArkTS';
43 let ss = new worker.ThreadWorker("entry/ets/workers/Worker.ets");
50 Receive messages sent by the worker thread.
54 console.info("worker:: res is " + res);
56 // Send a message to the worker thread.
90 In the preceding sample code, the worker receives a message from the host thread, processes the mes…