Conceptual question about async /u/gmalbert Python Education

I have read several articles and watched a couple of videos on async and how it’s structured, when to use it, etc. I have not been able to figure out my basic conceptual question, so I’m hopeful someone can provide what I’m sure is an obvious answer. I need the a-ha moment!

If I write a program that sets a variable, manipulates the variable, and then does something with that variable, how is async a possible solution? If each step is reliant on the step before, as it is in top-down programming, how could I write an async function that operates independently?

If I’m pulling a value from an API, for example, and then using that value in the program, can async do that? Doesn’t it depend on the value pulled from the API?

As you can see, I’m missing a fundamental concept here. If someone can provide a simple explanation, I’d be grateful.

submitted by /u/gmalbert
[link] [comments]

​r/learnpython I have read several articles and watched a couple of videos on async and how it’s structured, when to use it, etc. I have not been able to figure out my basic conceptual question, so I’m hopeful someone can provide what I’m sure is an obvious answer. I need the a-ha moment! If I write a program that sets a variable, manipulates the variable, and then does something with that variable, how is async a possible solution? If each step is reliant on the step before, as it is in top-down programming, how could I write an async function that operates independently? If I’m pulling a value from an API, for example, and then using that value in the program, can async do that? Doesn’t it depend on the value pulled from the API? As you can see, I’m missing a fundamental concept here. If someone can provide a simple explanation, I’d be grateful. submitted by /u/gmalbert [link] [comments] 

I have read several articles and watched a couple of videos on async and how it’s structured, when to use it, etc. I have not been able to figure out my basic conceptual question, so I’m hopeful someone can provide what I’m sure is an obvious answer. I need the a-ha moment!

If I write a program that sets a variable, manipulates the variable, and then does something with that variable, how is async a possible solution? If each step is reliant on the step before, as it is in top-down programming, how could I write an async function that operates independently?

If I’m pulling a value from an API, for example, and then using that value in the program, can async do that? Doesn’t it depend on the value pulled from the API?

As you can see, I’m missing a fundamental concept here. If someone can provide a simple explanation, I’d be grateful.

submitted by /u/gmalbert
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *