Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #37501

Re: setTimeout( ), with startpoint at t0

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.javascript
Subject Re: setTimeout( ), with startpoint at t0
Date Sat, 5 Oct 2019 13:58:12 +0200
Lines 31
Message-ID <gvreqqF37pjU1@mid.individual.net> (permalink)
References <6ff17c5f-0702-4fef-8f1d-51c44a54fad6@googlegroups.com> <gvoq07Fgr63U1@mid.individual.net> <2270c2cc-48a6-48eb-b7bd-113ccfbb7186@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net KJGlqw5D6HGmuCqTM8X6YQdMEMoNhypw3GWZAlGyaHqXcz07iF
Cancel-Lock sha1:O8kkqoS+qKMCxaygd7wPYKdV/aM=
In-Reply-To <2270c2cc-48a6-48eb-b7bd-113ccfbb7186@googlegroups.com>
Xref csiph.com comp.lang.javascript:37501

Show key headers only | View raw


Jonas Thörnvall:

> Den fredag 4 oktober 2019 kl. 13:50:36 UTC+2 skrev Arno Welzel:
>> On 03.10.19 13:11, Jonas Thörnvall wrote:
>>
>>> stopRec=setTimeout(STARTREC,interval);
>>>
>>> Basicly i want first call immediatly at t0, but this first call will happen after interval?
>>
>> What is "t0"? What is "STARTREC"?
>>
>>> I tried this.
>>> stopRec=setTimeout(STARTREC,0*interval); 
>>> But i am not sure it works like i think?
>>
>> See
>> <https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout>
>>
>>
>> -- 
>> Arno Welzel
>> https://arnowelzel.de
> 
> Well t0 is Time zero 0 ms, what startRec is, is not interesting. If you want to find out look here.

Why do you even use setTimeout() then and not just call STARTREC directly?


-- 
Arno Welzel
https://arnowelzel.de

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-03 04:11 -0700
  Re: setTimeout( ), with startpoint at t0 JJ <jj4public@vfemail.net> - 2019-10-03 19:41 +0700
    Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-03 08:34 -0700
      Re: setTimeout( ), with startpoint at t0 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-10-03 21:53 +0200
        Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-03 14:58 -0700
  Re: setTimeout( ), with startpoint at t0 Arno Welzel <usenet@arnowelzel.de> - 2019-10-04 13:50 +0200
    Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-04 07:33 -0700
      Re: setTimeout( ), with startpoint at t0 Arno Welzel <usenet@arnowelzel.de> - 2019-10-05 13:58 +0200
        Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-05 15:44 -0700

csiph-web