snivilised / lorax

🌟 reactive extensions for go (a pseudo rxgo version 3)
MIT License
5 stars 0 forks source link

change the way client context is used #279

Closed plastikfan closed 4 months ago

plastikfan commented 4 months ago

Currently, the NewXXX accept the context and store on the workerPool. However, this is not the best way to use it, because references to it are made by the Reboot method, which naturally would use a different context to the one that the pool was initially created with. We should try to avoid storing context and in this case we can, because all uses of it do not require it to be stored.

goPurge and goTicktock should be changed to accept the context.