The pthread_once(3)
binding to the Node.js community.
$ npm install process-once.node --save
const once = require('process-once.node');
once(() => {
// run this function once in this process
});
- this package is for learning how
pthread_once
works. - this package is experimental and could be replaced with simple call function directly.
MIT