start.lua 557 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Start the Thread.',
  3. description = 'Starts the Thread.',
  4. arguments = {
  5. ['...arguments'] = {
  6. type = '*',
  7. description = 'Up to 4 arguments to pass to the Thread\'s function.'
  8. }
  9. },
  10. returns = {},
  11. variants = {
  12. {
  13. arguments = { '...arguments' },
  14. returns = {}
  15. }
  16. },
  17. notes = 'The arguments can be nil, booleans, numbers, strings, or LÖVR objects.',
  18. example = [=[
  19. function lovr.load()
  20. lovr.thread.newThread([[
  21. print(...)
  22. ]]):start(lovr.getVersion())
  23. end
  24. ]=]
  25. }