process-once.node

1.0.1 • Public • Published

process-once.node

The pthread_once(3) binding to the Node.js community.

Installation

$ npm install process-once.node --save

Example

const once = require('process-once.node');
once(() => {
  // run this function once in this process
});

Purposes

  1. this package is for learning how pthread_once works.
  2. this package is experimental and could be replaced with simple call function directly.

License

MIT

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i process-once.node

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • yorkie