preventEvents

inline fun preventEvents(run: () -> Unit)

Prevents all synchronous events attempted to be fired during run from being fired.