anothersequencer
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "anothersequencer", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Simple script tree sequencer in javascript. Allows creating fairly complex trees of sync/async functions or requestAnimationFrame functions with optional delays, as well as subscribing to particular outputs in the tree at any time.", | ||
@@ -5,0 +5,0 @@ "main": "sequencer.js", |
@@ -7,2 +7,4 @@ ## Javascript function sequencing | ||
For a DAG Node sequencer with promise-returning sequences: [AcyclicGraph.js](https://github.com/brainsatplay/acyclicgraph) | ||
Usage: | ||
@@ -66,3 +68,5 @@ | ||
let sub = sequencer.subscribeToOperation('repeater',onResult); //or .subscribe //adds a triggered function on result | ||
//add a triggered function on result | ||
sequencer.subscribe('repeater',(res)=>{console.log('subscribed',res)}); | ||
//You could even, say, subscribe one tagged sequence to another tagged sequence. | ||
@@ -69,0 +73,0 @@ |
114
62342
6
273