What's the best way to load modules in the background?

Jun 14, 2008 at 6:35 PM
I was thinking of creating a new implementation of ModuleLoader that loads each module in the background, it didn't take long to realise that wasn't going to work. Then I was thinking I should make it the modules own responsibility to perform long running initialization on a seperate thread. I could possibly control this through a new interface that contains an event for ModuleReady, this way my application could wait for modules to be ready during initialization.

What are other peoples thoughts? Has anyone acheived background loading of modules?