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!
===C#=== [[C Sharp 2.0|C# 2.0]] added semi-coroutine ([[generator (computer programming)|generator]]) functionality through the iterator pattern and <code>yield</code> keyword.<ref>{{cite web |last1=Wagner |first1=Bill |title=Iterators |url=https://learn.microsoft.com/en-us/dotnet/csharp/iterators |website=C# documentation |publisher=[[Microsoft]] |date=11 November 2021 |via=Microsoft Learn |access-date=16 February 2023 |archive-date=11 April 2024 |archive-url=https://web.archive.org/web/20240411225954/https://learn.microsoft.com/en-us/dotnet/csharp/iterators |url-status=live }}</ref><ref>{{cite web |last1=Wagner |first1=Bill |title=The history of C# |url=https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-20 |website=C# documentation |publisher=[[Microsoft]] |date=13 February 2023 |via=Microsoft Learn |at=C# version 2.0 |access-date=16 February 2023 |archive-date=28 April 2023 |archive-url=https://web.archive.org/web/20230428185411/https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-20 |url-status=live }}</ref> [[C Sharp 5.0|C# 5.0]] includes [[await]] syntax support. In addition: *The '''[https://github.com/MindTouch/dream MindTouch Dream]''' REST framework provides an implementation of coroutines based on the C# 2.0 iterator pattern. * The '''[http://caliburn.codeplex.com/Wiki/View.aspx?title=IResult Caliburn]''' ({{Webarchive|url=https://archive.today/20130119150506/http://caliburn.codeplex.com/Wiki/View.aspx?title=IResult |date=2013-01-19 }}) screen patterns framework for WPF uses C# 2.0 iterators to ease UI programming, particularly in asynchronous scenarios. *The '''[http://www.wintellect.com/PowerThreading.aspx Power Threading Library]''' ({{Webarchive|url=https://web.archive.org/web/20100324183723/http://wintellect.com/PowerThreading.aspx |date=2010-03-24 }}) by [[Jeffrey Richter]] implements an AsyncEnumerator that provides simplified Asynchronous Programming Model using iterator-based coroutines. *The [[Unity (game engine)|Unity]] game engine implements coroutines. *The '''[https://github.com/yevhen/Servelat-Pieces Servelat Pieces]''' project by [[Yevhen Bobrov]] provides transparent asynchrony for Silverlight WCF services and ability to asynchronously call any synchronous method. The implementation is based on Caliburn's Coroutines iterator and C# iterator blocks. *'''[https://github.com/michaelmeling/StreamThreads StreamThreads]''' is an open-source, light-weight C# co-routine library based on iterator extension methods. It supports error handling and return values.
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)