Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Coroutine
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Go=== [[Go (programming language)|Go]] has a built-in concept of "[[goroutine]]s", which are lightweight, independent processes managed by the Go runtime. A new goroutine can be started using the "go" keyword. Each goroutine has a variable-size stack which can be expanded as needed. Goroutines generally communicate using Go's built-in channels.<ref>{{Cite web |title=Goroutines - Effective Go |url=https://go.dev/doc/effective_go#goroutines |access-date=2022-11-28 |website=go.dev |language=en |archive-date=2024-06-27 |archive-url=https://web.archive.org/web/20240627152229/https://go.dev/doc/effective_go#goroutines |url-status=live }}</ref><ref>{{Cite web |title=Go statements - The Go Specification |url=https://go.dev/ref/spec#Go_statements |access-date=2022-11-28 |website=go.dev |language=en |archive-date=2022-11-27 |archive-url=https://web.archive.org/web/20221127233150/https://go.dev/ref/spec#Go_statements |url-status=live }}</ref><ref>{{Cite web |title=Goroutines - A Tour of Go |url=https://go.dev/tour/concurrency/1 |access-date=2022-11-28 |website=go.dev |archive-date=2024-06-26 |archive-url=https://web.archive.org/web/20240626173728/https://go.dev/tour/concurrency/1 |url-status=live }}</ref><ref>{{Cite web|url=https://go.dev/doc/faq|title=Frequently Asked Questions (FAQ) - The Go Programming Language|website=go.dev|access-date=2022-11-28|archive-date=2021-11-22|archive-url=https://web.archive.org/web/20211122200010/https://go.dev/doc/faq|url-status=live}}</ref> However, goroutines are not coroutines (for instance, local data does not persist between successive calls).<ref>{{Cite web |title=Coroutines for Go |url=https://research.swtch.com/coro |access-date=2024-10-24 |website=swtch.com |language=en |archive-date=2024-09-28 |archive-url=https://web.archive.org/web/20240928032458/https://research.swtch.com/coro |url-status=live }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)