semicoroutine

noun

semicoroutine

noun

Etymology From semi- + coroutine.

1

Computing, Engineering, Mathematics, Natural sciences, Physical sciences, Programming, Sciences A type of coroutine with limited control over its execution flow that can yield values multiple times, suspending its execution and allowing the caller to resume it later. However, unlike full coroutines, semicoroutines do not specify where the execution will continue after yielding; control is always returned to the caller.

  • Each incarnations needs some block structure information (static and dynamic link, display or such like), a return label, n+1 label variables for the activation points of the cooperation (in the "semicoroutine" case) and of the n coprocedures and the space needed for parameters and locals.1974, Information Processing (IFIP transactions: Computer science and technology), Unesco, page 409:
  • C# 2.0 added semi-coroutine functionality through the iterator pattern and yield keyword.2024, Vaskaran Sarcar, Parallel Programming with C# And . NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications, Apress, →ISBN, page 359:
Synonyms
generator

Entry derived from the Wiktionary, under licence CC BY-SA 4.0 — list of authors.