Do not add files to module projects. This adds unnecessary regression testing to your module as you change the layout of the module, expanding the unused portion. Most likely, you will not do this regression testing, and who knows if this will cause a problem. Better to be paranoid.
Instead, come up with a Delay procedure (int milliseconds) that you pass to the callback that materializes the callback that you use to retrieve the remote assembly.
In other words, separate the assembly of assembly resources from the use of assembly resources. Between these two phases arbitrarily random sums of the waiting time are inserted. I also recommend logging the actual time that remote users took to build and use it for future test points so that your user interface designers and QA team have valuable information about how long users wait. This will allow you to cheaply mock up the end-user experience in your QA environment. Just make sure your log contains relevant data, such as the size of the requested assembly.
A few weeks ago, I asked a question about StackOverflow about something related to this , and I had to solve the question that you asked, so I am sure that this is the correct answer, born from experience, not the mind.
source share