pickled-dev / smt-tools

A series of tools to assist in playing the Shin Megamai Tensei video game series
0 stars 0 forks source link

observable worker is just completely broken #93

Closed pickled-dev closed 4 months ago

pickled-dev commented 4 months ago

I went through the debugger and I realized that none of the messages sent from the demon builder subject get sent to the component listener until after the component has unsubscribed. At least in the case of my current test.

The primary thing that's different is that this one has recursive depth enabled. So I'm thinking when the call stack size starts to balloon maybe rxjs can't use it's async properly until the call stack has cleared up some?

pickled-dev commented 4 months ago

Some basic googling brings up an RxJS object called a scheduler. Maybe I can use this to get more control over when the messages are sent.

Or maybe I need a different subject.

https://rxjs.dev/guide/scheduler

pickled-dev commented 4 months ago

has been resolved on the worker-rewrite branch