I\'m trying to design a simple struct that can run a thread of its own. My use case is a video decoder. I create the struct, set the on_produce function, and then i
on_produce