Noiwhile
Noiwhile is a programming construct used in the fictional programming language Noi. It provides a non-blocking form of iteration intended for asynchronous workflows, allowing code to express loops that yield control to an event loop rather than occupying a thread.
The name Noiwhile derives from the language name and the standard while loop concept. It was introduced
Noiwhile is written as noiwhile (condition) { body }. In its non-blocking variant, the body is executed in
Noiwhile is designed to integrate with the Noi runtime's asynchronous primitives, such as futures and promises,
As a language-level construct, noiwhile relies on the runtime's scheduler to split work into micro-steps. Critics
See also: While loop, asynchronous programming, event loop, Noi language.