Skip to content

Instantly share code, notes, and snippets.

View joystick's full-sized avatar
🧨

Alexei Kozhushkov joystick

🧨
View GitHub Profile
@joystick
joystick / rx_meteor.js
Created March 24, 2016 11:09 — forked from voxlet/rx_meteor.js
Rx Observable from Meteor reactive source
import Rx from 'rx';
function fromTrackerSource(source) {
return fromAutorun(function(observer) {
try {
observer.onNext(source());
} catch (e) {
observer.onError(e);
}
});