tc39 / proposal-atomics-wait-async

"asynchronous atomic wait" for ECMAScript
https://tc39.github.io/proposal-atomics-wait-async/
Other
89 stars 18 forks source link

Bikeshed the name #1

Closed lars-t-hansen closed 7 years ago

lars-t-hansen commented 7 years ago

The current method name, waitNonblocking, is fairly technical and perhaps oxymoronic? I've been told the name was disliked at the May TC39 meeting, too.

In https://github.com/lars-t-hansen/moz-sandbox/issues/1, @leobalter wrote:

I suggest renaming it to waitAsync or asyncWait, which makes more sense in the camel casing and reuses the word async in the sense we'll have a returned promise.

I'm happy with whatever, so let the bikeshedding begin! (I have a fondness for dontWait which I think was suggested by @allenwb, but I don't think that's going to reduce the confusion any.)

EDIT: Typo.

syg commented 7 years ago

What about defer?

leobalter commented 7 years ago

works for me

devsnek commented 7 years ago

+1 to waitAsync, as it falls in line with the names other people seem to use, and consistency is always key.

lars-t-hansen commented 7 years ago

I have gone with waitAsync for now and updated the proposal, the polyfill, and the example materials. Please reopen if the discussion at the f2f warrants it.