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')`
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i minizone

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • cztomsik