ecmascript-2017 Questions

1

Solved

I use babel-eslint to lint/fix my code. Worked great until I wanted to adopt some ES2017 async await found overhere. I changed my React app accordingly, allbeit slightly different: The relevant p...
Lidda asked 23/3, 2017 at 14:20

2

Solved

I'm new to Node and created an app that has some async/await syntax in it like so: const express = require('express'); const app = express(); const someLibrary = require('someLibrary'); function...
Nonresident asked 23/3, 2017 at 14:44

1

Solved

I'm using Node version 7.6.0 to try out the native async and await features. I'm trying to figure out why my async call just hanging never actually resolves. NLP module: const rest = require('un...
Pitchfork asked 22/2, 2017 at 21:36

1

Solved

I was just reading about async functions and came across some similar features of ES2017. It has created a lot of confusion, I wanted to just ask: What is the difference between async function, A...
Connection asked 16/2, 2017 at 1:26

1

Solved

Is it safe to use async-await in Javascript instead of generators-promises now, knowing that the syntax has not made yet and will be coming with the release of ES8? What browsers can I count...

1

Solved

Async/await are really handy, but I want the opposite of their behavior. Instead of other functions continuing on unless I manually ask them to await a promise, I want functions to yield unless I m...

2

Solved

I'm trying to log a statement in an async function as follows: async generateCharts (insights) { const { url } = await this.reportsClient.createReport(insights) console.log('url from reports', u...
Sandpit asked 30/1, 2017 at 16:52

4

Solved

I am confused about the current discussion of adding async functions and the keyword await to the next EcmaScript. I do not understand why it is necessary to have the async keyword before the func...
Masker asked 17/7, 2015 at 19:28

1

Solved

Can you stop code outside of the async function using await? However, I don't want all code to stop. I want to control what code will run. I think there might be a solution, something like this: ...

4

Solved

I have promise objects which need to work synchronize. For example second promise shouldn't work before first one is done. If first one rejects first one has to be executed again. I have implement...
Mathematician asked 29/8, 2016 at 18:41

1

Solved

I had a asynchronous function in Javascript and I added setTimeout to it. The code looks like this: let timer; clearTimeout(timer); timer =setTimeout(() => { (async() => { await this._doSome...
Fescennine asked 16/8, 2016 at 12:37

1

Solved

I'm trying to code a method that show recursively an ActionSheetIOS to select a value contained from arrays and return the selected values: async function _rescursiveSelect(data, index) { if (ind...
Wade asked 19/11, 2015 at 13:22

2

Solved

I started using async/await ES7 functions in my js applications (transpiled by Babel). Correct me if wrong, but do they work only with Promises? If yes, this means that I need to wrap regular cal...
Postprandial asked 8/7, 2015 at 13:41

© 2022 - 2024 — McMap. All rights reserved.