Skip to content
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

Simple thread instance in GDScript #23686

Closed
schweigert opened this issue Nov 13, 2018 · 3 comments
Closed

Simple thread instance in GDScript #23686

schweigert opened this issue Nov 13, 2018 · 3 comments

Comments

@schweigert
Copy link
Contributor

schweigert commented Nov 13, 2018

Many languages have a reserved word to start asynchronous code snippets. It would be a good idea to have this word in gdScript.

func _ready():
    var thread = spawn my_method(1, 2, 3)
    # This is the same of Thread.new(....)
    var no_thread = my_method(1, 2, 3)

func my_method(a, b, c):
    # do work
    pass

@OvermindDL1 suggest spawn word.

This issue is a suggestion to resolve #9924.

@Chaosus Chaosus added this to the 3.2 milestone Nov 13, 2018
@Chaosus Chaosus changed the title [Suggestion] Simple thread instance in GDScript Simple thread instance in GDScript Nov 13, 2018
@OvermindDL1
Copy link

A new thread is parallelism, not asynchronousness (which is more of what coroutines are).

@OvermindDL1
Copy link

spawn or something would be more accurate, not async as that is an entirely different concept.

@akien-mga akien-mga removed this from the 3.2 milestone Dec 13, 2019
@clayjohn
Copy link
Member

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.

The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.

If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants