R-a-dio / valkyrie

R/a/dio software stack
https://r-a-d.io
MIT License
5 stars 3 forks source link

streamer: queue has no exiting policy for goroutines it spawns #10

Closed Wessie closed 5 years ago

Wessie commented 6 years ago

current goroutine usage in the queue code does not have a proper way to clean these up if it somehow hangs for longer than intended or falls behind on new queue methods being called.

Queue should instead have some form of mechanism to limit itself to a single goroutine whenever using out-of-bounds actions based on method calls

Wessie commented 5 years ago

35 fixes this by having all spawned goroutines have a timeout based context