coroutines
常見例句
- Coroutines have a different syntax in C#.
使用C%23實現(xiàn)協(xié)同,在語法上會有一處不同。 - If your program creates and frees too many coroutines, recycling may be an option to improve its performance.
如果你的程序創(chuàng)建和釋放太多的協(xié)程,再循環(huán)或許是個提升性能的選擇。 - Coroutines can save processor overhead and reduce redundancy because they allow you to stop execution of a procedure midstream, return a value, and resume exactly where the procedure left off.
協(xié)同例程允許用戶中途停止程序執(zhí)行,返回一個值,并準確地在過程停止的位置恢復(fù)操作,從而能夠節(jié)省處理器系統(tǒng)開銷,降低冗余。 - Similarly, C offers only straightforward, single-thread control flow: tests, loops, grouping, and subprograms, but not multiprogramming, parallel operations, synchronization, or coroutines.
類似地,C只提供單線程的控制流:測試、循環(huán)、組合和子程序。它不提供多道程序設(shè)計、并行操作、同步和協(xié)同例程。 - The current API for coroutines does not offer direct support for reusing a coroutine, but we can circumvent this limitation.
當前的協(xié)程API并不直接支持重用協(xié)程,但是我們可繞過這個限制。 - 4. Coroutines have a different syntax in C#.
使用C%23實現(xiàn)協(xié)同,在語法上會有一處不同。 返回 coroutines