Skip to content

Conversation

@LissetteIbnz
Copy link

Solution to the async-javascript exercise.

@LissetteIbnz LissetteIbnz changed the title Lissette/non blocking Máster Lemoncode / Solution to the async-javascript exercise Mar 20, 2018
const sendGetRequest = (req, url) => {
req.open('get', url, true);
req.open('get', url, false); // setting async to false, send() does not return until the response is received, then is forced to work synchronously
req.send();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's what I am asking for. It's to ensure house before character, but with 'non blocking' style.

@LissetteIbnz
Copy link
Author

Fixed the way to get the results, ensuring you get the houses before the characters.
I'm sorry. I completely forgot the purpose of the exercise. was the clip gone...

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

Successfully merging this pull request may close these issues.

2 participants