1. Modify the LLEvents table, calling :on or :off
  2. Follow that with function call with a forced delay (ll.Sleep, ll.InstantMessage, etc.)
  3. Modify the LLEvents table again
The 2nd modification of the events table triggers a yield error, because in step 2 we executed a call with a forced delay. This could be the ll.Sleep, or any ll.* function described as having a forced delay.
LLEvents:on("touch_start", print)
ll.Sleep(0.001)
LLEvents:on("touch_start", print)
The error generated is:
Object [script:New Script] Script run-time error
runtime error
Failed to perform mandatory yield
lua_script:3