This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Apr 20 13:23:14 -0700 2008 | [osteele] |
| |
CHANGES | Sat Apr 19 12:34:10 -0700 2008 | [osteele] |
| |
README | Sun Apr 20 13:23:14 -0700 2008 | [osteele] |
| |
Rakefile | Sun Apr 20 13:23:14 -0700 2008 | [osteele] |
| |
about.txt | Tue Jan 01 07:12:50 -0800 2008 | [osteele] |
| |
agenda.txt | Sun Nov 18 15:56:13 -0800 2007 | [osteele] |
| |
examples.js | Sun Nov 18 15:56:13 -0800 2007 | [osteele] |
| |
index.html | Fri Apr 18 21:36:22 -0700 2008 | [osteele] |
| |
index.js | Sat Nov 24 09:36:51 -0800 2007 | [osteele] |
| |
message-viewer.js | Tue Jan 01 07:12:50 -0800 2008 | [osteele] |
| |
notes.txt | Sat Nov 24 09:36:51 -0800 2007 | [osteele] |
| |
outtakes.js | Sun Nov 18 05:24:42 -0800 2007 | [osteele] |
| |
sequentially.js | Sat Apr 19 12:34:10 -0700 2008 | [osteele] |
| |
specs/ | Sun Apr 20 13:23:14 -0700 2008 | [osteele] |
| |
styles.css | Sat Nov 24 09:36:51 -0800 2007 | [osteele] |
README
= Sequentially
Sequentially is a library of temporal and frequency adverbs for
JavaScript. It provides methods to queue a function for deferred or
periodic execution, and to throttle the rate or number of times that a
function can be called. You could think of it as a kind of
memoization, where instead of caching the result it modifies *when*
and *whether* a function is called.
The {demo page}[http://osteele.com/sources/javascript/sequentially]
contains API documentation and interactive examples for most of the
functions. I've added a couple of functions more recently that aren't
on that page, but are in the specs[http://osteele.com/sources/javascript/sequentially/specs] instead:
Sequentially.trickle.forEach(array, fn, ms, k)
Call +fn+ on each element of +array+, and finally call +k+. The
function is applied to a slice of elements until +ms+ has elapsed; the
caller then waits a frame before applying it to the next slice.
Sequentially.trickle.map(array, fn, ms, k)
Call +fn+ on each element of +array+, collecting the results into an
array that is returned and passed as an argument to +k+. The function
is applied to a slice of elements until +ms+ has elapsed; the caller
then waits a frame before applying it to the next slice. The return
value is initially empty.
== License
Copyright 2007-2008 by Oliver Steele. All rights reserved.
Available under the MIT License.




