tristanable/todo

34 lines
974 B
Plaintext
Raw Permalink Normal View History

2020-09-29 09:58:11 +00:00
- [x] Use queues
- [x] Immediate head chop after dequeue
- [x] Thread.yields
2021-09-08 09:14:00 +00:00
- [ ] Sleep option
2021-09-08 17:23:23 +00:00
- [x] Use linked list for queues (increase performance)
2021-09-08 12:08:22 +00:00
- [ ] shutdown option
2021-09-08 17:23:44 +00:00
- [x] Queue policies
2021-09-08 12:08:22 +00:00
- [x] Length cap
- [ ] Exceptions
2022-05-17 12:41:51 +00:00
- [x] Queue deletion
## Todo
- [ ] Exception handling
- [ ] If the watcher has an error then we should throw an exception
* But it has to be on the main thread, therefore it should happen when using any of the `Queue` methods
* We need to set a value in those methods for this, everything should then throw an exception as the underlying endpoint is dead
- [x] We must set a field in `Manager` which `Queue` can check and then throw an exception
- [x] `Queue` must take in the `Manager` instance
- [x] Add checks in `Queue` class
- [ ] New sys, before calling `continue`, should `yield()`
- [x] Add `.start()`, don't start the watcher immediately
- [x] Code
- [x] Documentation