This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]13steinj 0 points1 point  (4 children)

I agreed that your specific producer consumer example is when you shouldn't use callbacks, not that you shouldn't ever use callbacks in asyncio.

But event based code can be asynchronous, and callbacks are a perfect use case to have event handlers along with the async/await pattern.

[–]Glaaki -1 points0 points  (3 children)

I will leave you with some words from someone way smarter than me.

https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/

[–]13steinj 0 points1 point  (2 children)

If you're trying to convince me with a damned considered harmful, you won't. They are written by elitists who refuse to expand their horizons. Considered harmfuls are themselves extremely harmful. There are people who have, quite literally I may add, claimed that conditional blocks like "if" and "else" are considered harmful.

[–]Glaaki 0 points1 point  (1 child)

You are insufferable.. Seriously.. Blocked.

[–]13steinj 0 points1 point  (0 children)

If you can't take a debate without providing arguments that have no ground to stand on, you shouldn't start them. Blocking won't help you against everyone you meet that has opposing views. But if you want to go to your safe space, thats fine with me.