eitherloopt
Eitherloopt is a concurrency pattern described in software engineering literature and online discussions as a construct that initiates two independent loops or long-running tasks in parallel and returns the result of the one that completes first. The term is not part of any formal language specification; it has appeared mainly in discussions of latency-sensitive algorithms and in experimental libraries.
Semantics and implementation: Each loop runs with its own cancellation scope; a coordination primitive signals completion;
Usage: When multiple strategies can compute a result with different cost profiles, eitherloopt can reduce latency
History and adoption: The pattern traces to online communities in the 2010s and 2020s; it is not
See also: Promise.race, futures::select, asyncio wait, race condition.