public
Description: 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.
Homepage: http://osteele.com/sources/javascript/sequentially/
Clone URL: git://github.com/osteele/sequentially.git
name age message
file .gitignore Sun Apr 20 13:23:14 -0700 2008 add README [osteele]
file CHANGES Sat Apr 19 12:34:10 -0700 2008 add trickle functions, specs [osteele]
file README Sun Apr 20 13:23:14 -0700 2008 add README [osteele]
file Rakefile Sun Apr 20 13:23:14 -0700 2008 add README [osteele]
file about.txt Tue Jan 01 07:12:50 -0800 2008 osdoc -> protodoc [osteele]
file agenda.txt Sun Nov 18 15:56:13 -0800 2007 add process control methods to return values [osteele]
file examples.js Sun Nov 18 15:56:13 -0800 2007 add process control methods to return values [osteele]
file index.html Fri Apr 18 21:36:22 -0700 2008 add more sources link [osteele]
file index.js Sat Nov 24 09:36:51 -0800 2007 port to prototype [osteele]
file message-viewer.js Tue Jan 01 07:12:50 -0800 2008 osdoc -> protodoc [osteele]
file notes.txt Sat Nov 24 09:36:51 -0800 2007 port to prototype [osteele]
file outtakes.js Sun Nov 18 05:24:42 -0800 2007 refactor view driver files [osteele]
file sequentially.js Sat Apr 19 12:34:10 -0700 2008 add trickle functions, specs [osteele]
directory specs/ Sun Apr 20 13:23:14 -0700 2008 add README [osteele]
file styles.css Sat Nov 24 09:36:51 -0800 2007 port to prototype [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.