question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename async to something else

See original GitHub issue

Please define your problem or issue as clear as possible.

Vivus version: 0.3.2

Browser: all

I saw this project posted on /r/javascript. I just wanted to start a dialogue regarding the async method. I think it’s confusingly named. I know that in programming synchronous means to do things one after another, while async means, well, to do them as things happen (via callbacks or using promises or async/await in JS).

But when I think about what the drawing method that is used when calling async in this library, it reminds me of marching bands and synchronized swimming and such. The lines are drawn in a synchronized fashion. So I feel like async is a confusing name.

I’m not here to crap on this project or anything, I just thought it’d be good start a dialogue on this before the project hits 1.0 and the name can’t easily be changed.

Thoughts?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
maxwellitocommented, Oct 18, 2016

Dammit! I wanted to discretely pass the nsync in the types list. But you got the idea before… let’s put it anyway 😃 About the naming, I saw something on Reddit I quite like : parallel. It’s simple and really describe my vision of it. Do you find it alright? I just want to stay away from ‘sync’.

I wanted to keep ‘delayed’, and maybe rename the ‘oneByOne’ to something like ‘queue’.

1reaction
AshleyGrantcommented, Oct 18, 2016

I’ll list some options. Hopefully some other people will get in here and throw a ruckus about how bad my suggestions are.

  • sync
  • synchronized
  • atTheSameTime
  • allTogether
  • justinTimberlake (get it, b/c everything is drawn “n’Sync”)

Ok, so that last one is a joke, and the other ones all have flaws. But if we’ve got OneByOne then AtTheSameTime might work.

As far as the other names, I think they’re fine, but that’s just, like, my opinion, man.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to wait for the response of all async fs.rename without ...
I use await so I get notified when renaming is done. It takes 8-10minutes per run and it can't rename simultaneously since I...
Read more >
Make method async code fix - method name changes ... - GitHub
I am converting an old WinPocket project to Xamarin, and I don't want the methods to be renamed, as there is lots of...
Read more >
How can I automatically rename buffers created with `async ...
I don't use EXWM, but async-shell-command accepts extra optional parameters. The second parameter is the name you want for the buffer with the ......
Read more >
3 Methods to Rename a File Using Node.js fs Module ...
Method 1: Rename a File Asynchronously With Callback ... When we perform something asynchronously in JavaScript that means, we are doing something ......
Read more >
How to operate callback-based fs.rename() method with ...
The fs.rename() method is defined in the File System module of Node.js. ... const renameOperation = async (oldpath, newpath) => {.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found