public void setWaitForExternalEvents ( boolean shouldWait ) { if ( waitForExternalEvents && ! shouldWait ) { waitForExternalEvents = false ; recentlyEnqueuedExternalEvents . add ( NO_MORE_WAIT_EXTERNAL ) ; } else { waitForExternalEvents = shouldWait ; } }
Sets whether this program waits for external events or not .