[Python-ideas] async objects
Chris Angelico
rosuav at gmail.com
Tue Oct 4 13:38:04 EDT 2016
On Wed, Oct 5, 2016 at 3:40 AM, Sven R. Kunze <srkunze at mail.de> wrote:
> I don't think that's actually what I wanted here. One simple keyword should
> have sufficed just like golang did. So, the developer gets a way to decide
> whether or not he needs it blocking or nonblocking **when using a
> function**. He doesn't need to decide it **when writing the function**.
The only way to do that is to write *every* function as async, and
then if you want it blocking, you immediately wait for it. In other
words, you write everything asynchronously.
ChrisA
More information about the Python-ideas
mailing list