Calvin Spealman wrote:
I think "yield from" is the obvious way to "call" between tasks, but that there are other cases when we want to spawn a task to begin without blocking our task, and that "yield" should be used here.
I've thought of another problem with this. In my scheduler at least, simply spawning a task doesn't immediately allow that task, or any other, to run. Using "yield" to spell this operation gives the impression that it could be a suspension point, when it's actually not.
It also forces anything that uses it to be called with "yield from", all the way up, so if you're relying on the presence of yield-froms to warn you of potential suspension points, you'll get false positives.