Spark.publish() & Spark.sleep() - How to make sure publish() is finished?

A forum search for complete came up with this