Skip to content

Commit 0da3e20

Browse files
committed
add jsdoc
1 parent 26b56dc commit 0da3e20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/generators.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ const createGenerator = markdownInput => {
7070
const threadQueue = [];
7171

7272
/**
73-
*
74-
* @param name
75-
* @param dependencyOutput
76-
* @param extra
73+
* Run the input generator within a worker thread
74+
* @param {keyof AllGenerators} name
75+
* @param {any} dependencyOutput
76+
* @param {Partial<GeneratorOptions>} extra
7777
*/
7878
const runInWorker = (name, dependencyOutput, extra) => {
7979
return new Promise((resolve, reject) => {
8080
/**
81-
*
81+
* Run the generator
8282
*/
8383
const run = () => {
8484
activeThreads++;
@@ -114,7 +114,7 @@ const createGenerator = markdownInput => {
114114
};
115115

116116
/**
117-
*
117+
* Process the worker thread queue
118118
*/
119119
const processQueue = () => {
120120
if (threadQueue.length > 0 && activeThreads < MAX_THREADS) {

0 commit comments

Comments
 (0)