Any small example of a queue like system, where a function is automatically executed when a new item pops in the queue?

Maybe you want a Channel and a Task that reads from it. Instead of, or in addition to, adding your filenames to a vector, put! them on a Channel.

https://docs.julialang.org/en/v1/manual/asynchronous-programming/

2 Likes