init.lua 587 B

1234567891011
  1. return {
  2. summary = 'A message channel for communicating between threads.',
  3. description = [[
  4. A Channel is an object used to communicate between `Thread` objects. Channels are obtained by
  5. name using `lovr.thread.getChannel`. Different threads can send messages on the same Channel to
  6. communicate with each other. Messages can be sent and received on a Channel using
  7. `Channel:push` and `Channel:pop`. The following types of data can be passed through Channels:
  8. nil, boolean, number, string, and any LÖVR object.
  9. ]],
  10. constructor = 'lovr.thread.getChannel'
  11. }