Browse Source

Add Thread:start arguments;

bjorn 5 years ago
parent
commit
4d00f44a2b
2 changed files with 14 additions and 2 deletions
  1. 7 1
      api/init.lua
  2. 7 1
      api/lovr/thread/Thread/start.lua

+ 7 - 1
api/init.lua

@@ -23086,7 +23086,13 @@ return {
               module = "lovr.thread",
               variants = {
                 {
-                  arguments = {},
+                  arguments = {
+                    {
+                      name = "...arguments",
+                      type = "*",
+                      description = "Up to 4 arguments to pass to the Thread's function."
+                    }
+                  },
                   returns = {}
                 }
               }

+ 7 - 1
api/lovr/thread/Thread/start.lua

@@ -1,6 +1,12 @@
 return {
   summary = 'Start the Thread.',
   description = 'Starts the Thread.',
-  arguments = {},
+  arguments = {
+    {
+      name = '...arguments',
+      type = '*',
+      description = 'Up to 4 arguments to pass to the Thread\'s function.'
+    }
+  },
   returns = {}
 }