Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34709
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: micro TimeScheduler in Javascript? |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <75df6bed-18f8-4a3d-90bf-7d9f694c7a7d@googlegroups.com> |
| Date | 2018-02-05 14:21 +0100 |
| Message-ID | <XnsA88092163C773eejj99@194.109.6.166> (permalink) |
Jonas <jonas.thornvall@gmail.com> wrote on 05 Feb 2018 in comp.lang.javascript: > In timecritical applications it seem one often need some form of > scheduler that takes a list of timings, to perform some sort of batch? > The jobs done and ready but waiting to be sent on certain time? > > setSchedule(myFunction,myArraywithTimings); > > I have a hard to even figure out if i should use setTimeout setTimeout fires only once, so that is whay you want, it seems. > or setInterval setInterval fires repeatedly > to playup recorded events with their relative timing "in > microseconds", or if there is other options? You could poll a list ["schedule"] of tasks every so many miliseconds, microseconds being outside the realm of practical scripting applications. > -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
micro TimeScheduler in Javascript? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-02-05 03:38 -0800
Re: micro TimeScheduler in Javascript? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-02-05 14:21 +0100
Re: micro TimeScheduler in Javascript? Julio Di Egidio <julio@diegidio.name> - 2018-02-05 05:55 -0800
csiph-web