made with esnextbin
Created
March 9, 2016 20:21
-
-
Save TylorS/8ee44e12510dccfeeeb5 to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
</head> | |
<body> | |
<!-- put markup and other contents here --> | |
<div id='app'></div> | |
</body> | |
</html> |
This file contains hidden or 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
const {from, of} = require('most') | |
const streams = [of(1), of(2), of(3)] | |
const doesntThrow = from(streams).join().map(() => { | |
throw new Error('You can not see me') | |
}).continueWith(() => most.from(streams)) | |
const doesThrow = from(streams).map(() => { | |
throw new Error('You can see me') | |
}).drain() |
This file contains hidden or 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
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"most": "0.18.0" | |
} | |
} |
This file contains hidden or 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 _require = require('most'); | |
var from = _require.from; | |
var of = _require.of; | |
var streams = [of(1), of(2), of(3)]; | |
var doesntThrow = from(streams).join().map(function () { | |
throw new Error('You can not see me'); | |
}).continueWith(function () { | |
return most.from(streams); | |
}); | |
var doesThrow = from(streams).map(function () { | |
throw new Error('You can see me'); | |
}).drain(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment