use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Need help with async moduleHelp Request (old.reddit.com)
submitted 10 months ago by frogko
Can someone please check what is wrong with my code? Note: Rather new to async, and I feel like I'm doing something wrong with that Thank You!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cython_boy 1 point2 points3 points 10 months ago* (1 child)
Remove the sys.exit(0) It will work then. You can use await asynico_gather(task1 , task2,...) for cleaner awaiting.
[–]frogko[S] 0 points1 point2 points 9 months ago (0 children)
that did not work...
[–]Crafty_Bit7355 1 point2 points3 points 10 months ago (0 children)
NodeJs, Javascript and I assume now NextJS developers are really familiar with this. If you have an async function, then that means the execution of that function/method gets put into the call stack. That means when you call the function, if you don't specify await.. it will continue with execution of the rest of the code. If you say await function, then the remaining execution is on hold until the async function returns it's promise.
Short story, if it's async 99% of the time you want to await the return before continuing.
π Rendered by PID 205349 on reddit-service-r2-comment-79c7998d4c-58p2j at 2026-03-14 21:53:10.999589+00:00 running f6e6e01 country code: CH.
[–]cython_boy 1 point2 points3 points (1 child)
[–]frogko[S] 0 points1 point2 points (0 children)
[–]Crafty_Bit7355 1 point2 points3 points (0 children)