Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Created January 14, 2017 03:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ORESoftware/d23de7c46114c2c3412c685d8672ae3e to your computer and use it in GitHub Desktop.
Save ORESoftware/d23de7c46114c2c3412c685d8672ae3e to your computer and use it in GitHub Desktop.
// import opq
const Queue = require('opq');
// below we create a new client to the queue,
// and create the queue on the filesystem if it does
// not exist. the port is used by Live-Mutex;
// fp is our queue filepath
const q = new Queue({
fp: path.resolve(process.env.HOME + '/testing.txt')
port: 8888
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment