1.1.0 • Published 7 years ago

@slicky/realm v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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...');
	}
);