Open
Description
Our current implementation for scanning files/directories is done by using observables:
Instead, we should architect a channel system that works as:
- Create a new Task & Channel for each detector
- Launch each detector with a semphore blocking execution untill all detectors have subscribed to the channel
- Begin scanning directories
- Each file found will get sent through the channel
- Detector gets the message, and scans file or ignores it depending on the pattern
We could also implement a Broadcast channel similar to https://docs.rs/tokio/latest/tokio/sync/index.html#broadcast-channel