How to use the rx-lite.Observer function in rx-lite

To help you get started, we’ve selected a few rx-lite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / rx-lite / rx-lite-tests.ts View on Github external
function createObserver(tag: string) {
		return Rx.Observer.create(
			x => {
				console.log('Next: ' + tag + x);
			},
			err => {
				console.log('Error: ' + err);
			},
			() => {
				console.log('Completed');
			});
	}