You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • Mon 2019.06.17

    @Unreality this experiment is creating a true Unreality! ;-)

    Did you catch the bold text just beneath that code snippet from the link provided?

    "Note: The above code is NOT recommended."

    Forcing the processor to block other requested scheduled tasks is a bad practice, as you have discovered. A forced break/exit is most likely by design as this article points out:

    https://cs.stackexchange.com/questions/9­354/what-mechanisms-prevent-a-process-fr­om-taking-over-the-processor-forever

    The datasheet for your particular processor may have an explanation also.

    The original snippet using setTimeout is the recommended way to go.

    re: 'Which is pretty confusing for the blockly user'

    What is the true purpose, an attempt to make Javascript instructions look pretty?

About

Avatar for Robin @Robin started