Transcript from the "Asynchronous Web Browser APIs Q&A" Lesson
>> Will Sentance: But let's have thumb. You lost me, I'm clear. I have clarifications. Everybody thumbs out, I'm proud. Michelle has one, Mike has one. Mike, let's come to you first.
>> Mike: I'm just wondering how to recruit if you have layers, if you have a set time out function called that requires some more time.
>> Will Sentance: Okay, so your saying if inside my printHello I would defer further functionality. So call another function, which isn't a real function, a facade for web browser feature. Yeah, okay, let's come to that. Michelle.
>> Michelle: My question is what if I'm actively executing something on the call stack?
>> Will Sentance: Excellent, where does that go? Exacly, spot on. Suppose I have like 10,000 console logs. When is the function allowed back in? Just as soon as ready? After five of those console logs, after a few of them, what if I have a function as you say sitting on the call stack for maybe 300 milliseconds?
[00:01:08] Or even 1000 milliseconds? When's the printHello allowed back on? It's gonna just come in randomly? Maybe. What a language design that would be. Let's just make sure we know which are our facade functions. We've got set time out. When I say facade, I mean it's a facade, it's a front.
[00:01:49] You know that bit where the faces open up my God, fucking hate that. I literally I watched the first two episodes and the first episode of the season, with my fingers like this the whole way through incase anytime I saw one of those people incase their faces opened up.
[00:02:01] And it happened. I saw a bit of it, and I haven't watched it since. I don't like this show anymore. I don't want to see the faces opening up, but this is what it's like. It's like a facade. For those of you who have not seen Westworld, it's about pretend versions of people or maybe not.
[00:02:53] So here we go, line by line we're gonna walk through our code. And then by the way we're gonna get into pair programming. And then we're gonna see a brand new solution that everybody loves that does not use this model.