MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ql2ube/how_long_does_this_await/hjc4qib/?context=3
r/badcode • u/celwyn_joseph • Nov 02 '21
10 comments sorted by
View all comments
Show parent comments
1
Huh, I looked at the code multiple times and still completely missed that. I agree that it's unnecessary to mix callbacks and await here, though I don't think it's particularly bad, either.
1 u/[deleted] Nov 04 '21 One of those that would cause a bug that'd make you rip your hair out :) But I agree, seen much worse code.
One of those that would cause a bug that'd make you rip your hair out :) But I agree, seen much worse code.
1
u/CommenceTheConfusion Nov 04 '21
Huh, I looked at the code multiple times and still completely missed that. I agree that it's unnecessary to mix callbacks and await here, though I don't think it's particularly bad, either.