« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/promisify-process.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/promisify-process.js')
-rw-r--r--src/promisify-process.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/promisify-process.js b/src/promisify-process.js
index 877cb8d..ca49b31 100644
--- a/src/promisify-process.js
+++ b/src/promisify-process.js
@@ -1,6 +1,9 @@
 'use strict'
 
 module.exports = function promisifyProcess(proc, showLogging = true) {
+  // Takes a process (from child_process) and returns a promise that resolves
+  // when the process exits.
+
   return new Promise((resolve, reject) => {
     if (showLogging) {
       proc.stdout.pipe(process.stdout)