!7 cmodule IndexedSimpleWikipedia > DynPrintLog { transient volatile Map theMap; transient volatile bool loadError; start { thread { try { theMap = indexedSimpleWikipedia_fast(); } on fail { loadError = true; } } registerAs('simpleWikipedia); } // API S textForTopic(S topic) { print("Waiting for Wikipedia to be loaded..."); while (!loadError && theMap == null && licensed()) { sleepSeconds(1.0); } ret getString text(mapGet(theMap, topic)); } }