SteveCossy / IOT

Range of Internet of Things - related projects
1 stars 3 forks source link

Implement a Disk-based queue #10

Closed SteveCossy closed 4 years ago

SteveCossy commented 4 years ago

References https://pypi.org/project/persist-queue/ Guessed q.empty()

SteveCossy commented 4 years ago

It was not working the way I expected. Conclusion is that it's not worthwhile. Searching online suggests very few people use queues in the way I want to. (q.get() doens't remove items from the queue as I expected.) Going to research threading now, to use that instead. https://github.com/SteveCossy/IOT/commit/8ac864eb295218879e853ec55707d505b2cd28fa https://github.com/SteveCossy/IOT/commit/49334708c3aa52b1c1a242c5a138fb03f271fd5f