securonic
Active member
hi everyone,
i have been working with the filesystem watcher and have come up against a problem. i have a background worker which carries out a process on each new file event but i am unable to process multiple files landing in a directory at once. i think i need some sort of queue to process the files in sequence without the watcher trying to call while the background worker is still active. can i create threads on the fly as needed to hold my filepaths while a background worker is active?
i have been working with the filesystem watcher and have come up against a problem. i have a background worker which carries out a process on each new file event but i am unable to process multiple files landing in a directory at once. i think i need some sort of queue to process the files in sequence without the watcher trying to call while the background worker is still active. can i create threads on the fly as needed to hold my filepaths while a background worker is active?