File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments