andywer / andywer/threads.js

Using onMessage and postMessage in a worker and main thread

Aperta
#322 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
TypeScript
Stelle
3.5k
Fork
173
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello, please provide an example of using onMessage and postMessage from both the worker side and the main thread side using Typescript. The object returned from **spawn** doesn't seem to include those methods and I dont see how to call them from within **expose** as well.

Thank you

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.