semicoroutine

English

Etymology

From semi- +‎ coroutine.

Noun

semicoroutine (plural semicoroutines)

  1. (programming) 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.
    • 1974, Information Processing (IFIP transactions: Computer science and technology), Unesco, page 409:
      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.
    • 2024, Vaskaran Sarcar, Parallel Programming with C# And . NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications, Apress, →ISBN, page 359:
      C# 2.0 added semi-coroutine functionality through the iterator pattern and yield keyword.

Synonyms