minizone

1.0.0 • Public • Published

Minizone

Minimal zone.js implementation using node.js async_hooks Used internally for searchlibs.com

Usage

import 'minizone'

const z = Zone.current.fork({
  properties: { tx: ... }
})

await z.run(async () => {
  // do something async
  // access tx from anywhere with `Zone.current.get('tx')`
})

Readme

Keywords

none

Package Sidebar

Install

npm i minizone

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • cztomsik