Teleplacer wrote:
Is there an idiomatic "short delay"
FWIW, if your application is interactive, I would do that test in a step method rather than a background process.
I keep coming back to this. Now I want code to be run when a CD is inserted. What's the best way to do this?
I was thinking about a forked process again that checks every so often, but this seems wasteful, since it will be a relatively rare event. Then, I re-read the Morphic suggestions, but given that this has nothing to do with the UI (although the event handler may well launch a UI), that doesn't feel right either.
Thanks. Sean