npm.io
1.1.0 • Published 8 years ago

@slicky/realm

Licence
MIT
Version
1.1.0
Deps
1
Vulns
0
Weekly
0

NPM version

Slicky/Realm

Zone.js wrapper

Installation

$ npm install @slicky/realm

Include zone.js into your application.

Usage

import 'zone.js';
import {Realm} from '@slicky/realm';

const parent = new Realm(
	() => {
		console.log('entering call...');
	},
	() => {
		console.log('leaving call...');
	}
);

const child = parent.fork(
	() => {
		console.log('entering child call...');
	},
	() => {
		console.log('leaving child call...');
	}
);