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
-
kobenz868299dassuming you're using (neo)vim, as thy name implies, you can easily fix it once and repeat it 56 times using a macro.
-
useVim2142299d@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. -
Demolishun34968299dWhat 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. -
Demolishun34968299dOops, they added await for the calls I was looking at. I guess that is very different from async.
-
CoreFusionX3492298dThey 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. -
CoreFusionX3492298dI 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. -
spongessuck6162298dIt would make sense if the outer method wasn't async. Now you have to await it twice for no reason.
Related Rants
-
Root15So;dfjkhijasdfkjq;sdfhjkl;asdf I copy a line from one spec (to create a user) and paste it in another spec. ...
-
Root1Started work: 9:30am Finished work: 9:30pm Finally finished my "basically done" ticket from two days ago, tho...
-
Root5I want to light this project on fire and walk away. Nothing is making any bloody sense. According to specs, ...
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