This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var csp = require('plexus-csp'); | |
// Creates a detached (i.e. never yielded) asynchronous task with some error | |
// reporting upon failure. The explicit error handling is necessary because | |
// error propagation to the calling task only works if we yield the result. | |
var detach = function(task) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Seq { | |
toArray() { | |
const a = []; | |
for (const x of this) | |
a.push(x); | |
return a; | |
} | |
toString() { | |
return this.toArray().join(' -> '); |
OlderNewer