Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kobenz36064dassuming you're using (neo)vim, as thy name implies, you can easily fix it once and repeat it 56 times using a macro.
-
useVim212164d@kobenz
it works, that is the problem. its already in release.
+6,859 −4,944
and I don't know what other seniors are doing. -
Demolishun3080864dWhat is the motivation to do this? I have seen other code in Godot that got turned into async calls and I didn't understand the reason for this. I wanted immediate results for what I was doing and didn't understand why they wanted them async. Maybe something to do with rendering vs control logic. I dunno.
I don't do web work, but I get that you want calls not to block. -
Demolishun3080864dOops, they added await for the calls I was looking at. I guess that is very different from async.
-
CoreFusionX298164dThey probably added async because they wanted to await and node bitched (legitimately) about it.
It definitely shows they don't understand what's going on when they return the promise resolve or reject..., which is not needed, not serves any purpose since those two functions return undefined anyway...
Still, any function that includes networking should be async anyway. -
CoreFusionX298164dI mean, async is like a virus. It infects everything that touches it.
Thing is, if you wanna keep the benefits of awaiting, you need to be async. There's no other workaround. -
spongessuck600164dIt would make sense if the outer method wasn't async. Now you have to await it twice for no reason.
Related Rants
-
NickyBones17I hit a milestone in my PhD journey today. I wrote my advisor an "I'm so done with this shit" e-mail for the f...
-
Root15So;dfjkhijasdfkjq;sdfhjkl;asdf I copy a line from one spec (to create a user) and paste it in another spec. ...
-
Root2Started work: 9:30am Finished work: 9:30pm Finally finished my "basically done" ticket from two days ago, tho...
this could be the final nail in the coffin for me.
so. fed up.
someone came and wrapped all the function with
Promise. And async callback.
LIKE, ALL OF THEM
57 functions.
now you have an extra try catch in it.
YEAH
I counted.
devrant
so done