`Thread.errors` not behaving as expected
Aberta
documentation
- Linguagem predominante
- TypeScript
- Estrelas
- 3.5k
- Forks
- 173
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Uncaught errors in a worker are not communicated to the `Thread.errors` observable on the main thread. Here is an existing threads.js example on Codesandbox, modified to throw an error in a worker and subscribe to errors on the main thread:
https://codesandbox.io/s/threadsjs-particles-forked-tgqpv?file=/src/worker.js
see line 16 of `worker.js` for the thrown error
see line 57 of `index.js` for the `Thread.errors` observable, which isn't receiving events.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.