'Why is there a keywork sync - no star

In generator’s, we have async:

  • async to get an Future
  • async* to get a stream

And sync:

  • sync* to get an Iterable.

But what about sync no start* found in keywords:

Is async just a "fictional keyword"?



Solution 1:[1]

Apart from the obvious, I like to ask questions, and it does indeed look like it is a fictional keyword. If you have a look in the analysis_server.

Occam’s razor don't always apply in programming, but in this case - it will work, even you don't care ;-)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1