def interruptwait():
evt = NSEvent.otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(NSApplicationDefined, NSPoint(), NSApplicationDefined, <NUM_LIT:0>, <NUM_LIT:1>, None, LIGHTBLUE_NOTIFY_ID, <NUM_LIT:0>, <NUM_LIT:0>)<EOL>NSApplication.sharedApplication().postEvent_atStart_(evt, True)<EOL>
If waituntil() has been called, this will interrupt the waiting process so
it can check whether it should stop waiting.