Skip to content

[1.16.4 - 1.94.0] Pcall Throws Error if Function Takes too Long #605

Answered by Lemmmy
Flexico asked this question in Q&A
Discussion options

You must be logged in to vote

This is not a bug. You are required to yield at least once every 5 seconds, or your program will be terminated. Consider inserting sleep(0) at the end of your loop (you can only draw once per tick anyway).

Tip: for future reference, you can ask programming related questions in the new Discussions page.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by SquidDev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Flexico
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #605 on December 12, 2020 20:56.