Skip to content

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

Notifications You must be signed in to change notification settings

yorkie/process-once.node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published