478 karma · joined October 1, 2013
Also the EU startup scene is most certainly not moribund. I guess you are misinformed.
And at last. The Commission doesn't want to drive out a US company. The European Union just has the expectation that companies doing business in Europe should pay taxes in Europe.
Also it's generally not useful to provide links like this. I can create hundreds of "sources" for you which say its myth. I can also do the opposite. If you want to link something please link a full blown study with hundreds or thousands of participants over at least half a year. Then we can talk.
How about:
async function main () {
try {
const responses = await Promise.all([
fetch('https://api.github.com/orgs/facebook'),
fetch('https://api.github.com/orgs/facebook')
]);
const jsons = await Promise.all(responses.map(res => res.json()))
} catch (err) {
console.log(err)
}
}
I think this is pretty clear and not needing any library for this is quite nice.The fetch function can for example also be used to get images. There you would use .blob() and assign that to an image.src with URL.createObjectURL(blob);
See here: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/U...
Getting data is as easy as:
async function main () {
try {
const res = await fetch('https://api.github.com/orgs/facebook');
const json = await res.json();
console.log(json);
} catch (e) {
// handle error
}
}
So I am quite happy when this lands in modern browsers asap.