Perhaps this is why so many people are confused by the multiple uses of "yield" in programming. For example, in a generator context, the metaphor is that the generator yields (produces) an element. In a threading context, a thread yields (concedes) to other threads.
Thanks for this. I've always been a little perplexed as to why an enumerator in Ruby uses 'yield' when it seemed like it was really the caller that was "yielding" to the enumerator. I ought to have been thinking of an enumerator yielding (as in giving) a value to the block provided by the caller.