wait-for-io-to-complete in drscheme:rep:text%

This waits for all pending IO in the rep to finish and then returns.

This method must only be called from the main thread in DrScheme's eventspace