-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread requires argument even when not providing 'userdata' #36032
Comments
This is documented on Using multiple threads, but it doesn't explain why the |
I overlooked the doc (my mistake) about the Thread.start(), it was there:
Maybe making it more clearer (like the tutorial you linked):
|
* Updated docs for Thread.start() to specify that the method argument must accept one parameter.
Clarify docs for Thread.start() #36032
* Updated docs for Thread.start() to specify that the method argument must accept one parameter. (cherry picked from commit d09644d)
OS: Windows 7 SP1
Godot version: 3.2
Bug:
When you call Thread.start using a method which doesnt accept arguments, the following error occurs:
Example code:
Probably the internal call try to pass some argument and since work() doenst accept, it throws that error.
The code bellow runs fine:
The text was updated successfully, but these errors were encountered: