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

goroutine style to create a new thread? #3307

Closed
thesby opened this issue Jan 2, 2020 · 3 comments
Closed

goroutine style to create a new thread? #3307

thesby opened this issue Jan 2, 2020 · 3 comments
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one.

Comments

@thesby
Copy link

thesby commented Jan 2, 2020

Golang is easy to create a new goroutine (light thread), is it possible for vlang to implement it?

@thesby thesby added the Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. label Jan 2, 2020
@Miaourt
Copy link

Miaourt commented Jan 2, 2020

The concurrency model is very similar to Go. To run foo() concurrently, just call it with go foo(). Right now, it launches the function in a new system thread. Soon coroutines and the scheduler will be implemented.

https://vlang.io/docs#concurrency

@dumblob
Copy link
Contributor

dumblob commented Jan 2, 2020

See also #1868 (not to be confused with #1839 ).

@chanbakjsd
Copy link
Contributor

As mentioned in the comment, it's already planned (and in the docs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants