Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using async/await for Meteor.Method calls on the client #50

Open
suhail-ansari-apconic opened this issue Jan 30, 2016 · 7 comments
Open

Comments

@suhail-ansari-apconic
Copy link

Shouldn't we move all the meteor method call to use async/await as with 1.3 the ecmascript package will also enable its support. That should make method calls much more cleaner.

@arunoda
Copy link
Collaborator

arunoda commented Jan 30, 2016

Does it support async-await. Where can I see more on this?

@suhail-ansari-apconic
Copy link
Author

I read it in their feature list for 1.3. Let me see if I can find it.

@suhail-ansari-apconic
Copy link
Author

meteor/meteor#5460

This is where I read it.

@suhail-ansari-apconic
Copy link
Author

https://forums.meteor.com/t/start-using-async-await-instead-of-promises-and-callbacks/17037/5
Here is another thread discussing the same thing

@mquandalle
Copy link

Yes Meteor 1.3 has full support for the async/await keywords, I was able to run a test similar to what @suhail-ansari-apconic is recommending here: https://github.com/mquandalle/meteor-promisify-core/blob/74b331ac313f80081f7a92828a98b7ab99415eaf/promisify-core-tests.js#L18

@arunoda
Copy link
Collaborator

arunoda commented Jan 31, 2016

That's great.

@natecox
Copy link

natecox commented Feb 1, 2016

That's awesome, I've been eager to jump into async/await, although I will miss my promise chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants