Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: boolean while loops "how to stop" and "make room for textout to textarea" Date: Wed, 4 Nov 2020 15:18:50 +0100 Lines: 29 Message-ID: References: <6d2d33cc-9b19-469c-a25c-d8d2f862f0aco@googlegroups.com> <3r7tpfhth4n7toe3figrnvl9jr3ottf580@4ax.com> <708255df-d1f2-4753-9dde-ab7ff2f770dbo@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net Kp4EKxw0OLPHej/FDhMpDwKHuFZqsLGy8H3p8XKu2KffQTi2/H Cancel-Lock: sha1:wacnUxRiC4srhcycoPERGGKVXVM= In-Reply-To: Xref: csiph.com comp.lang.javascript:39116 Arno Welzel: > Julio Di Egidio: > >> On Tuesday, 3 November 2020 18:35:06 UTC+1, Arno Welzel wrote: >>> John G Harris fantasised: >> >>>> That is, a forever loop is guaranteed to be paused from time to time >>>> without that being requested by the thread code. >>> >>> No, a forever loop will block the current thread and a JavaScript >>> executes a script in the browser only in one single thread. >> >> JS executes in one thread everywhere (Node, JS.NET, etc.), not just >> in the browser: event-driven is its very *runtime model*. > > So what? I did say that is is *only* in a browser this way. Correction: I did *not* say that is is *only* in a browser this way. (Wanted to write "Did I say... ?" but then forgot to correct the sentence before sending the post). -- Arno Welzel https://arnowelzel.de