# Pastebin 7lEAWyKG # Good Run thread 1: register event 1 thread 1: wait for event 1 thread 1: sleep thread 2: wake up thread 2: trigger event 1 thread 2: register event 2 thread 2: wait for event 2 thread 2: sleep # Bad Run thread 1: wake up thread 1: un-register event 1 (trigger causes an un-register) thread 1: trigger event 2 thread 2: wake up thread 2: trigger event 1 thread 2: ERROR! event 1 is not registered (was un-registered in the last trigger, and has not yet been re-registered)