瀏覽代碼

Channel clarification;

bjorn 4 年之前
父節點
當前提交
466e4d9b98
共有 2 個文件被更改,包括 846 次插入473 次删除
  1. 843 471
      api/init.lua
  2. 3 2
      api/lovr/thread/Channel/init.lua

文件差異過大導致無法顯示
+ 843 - 471
api/init.lua


+ 3 - 2
api/lovr/thread/Channel/init.lua

@@ -4,8 +4,9 @@ return {
     A Channel is an object used to communicate between `Thread` objects.  Channels are obtained by
     A Channel is an object used to communicate between `Thread` objects.  Channels are obtained by
     name using `lovr.thread.getChannel`.  Different threads can send messages on the same Channel to
     name using `lovr.thread.getChannel`.  Different threads can send messages on the same Channel to
     communicate with each other.  Messages can be sent and received on a Channel using
     communicate with each other.  Messages can be sent and received on a Channel using
-    `Channel:push` and `Channel:pop`.  The following types of data can be passed through Channels:
-    nil, boolean, number, string, and any LÖVR object.
+    `Channel:push` and `Channel:pop`, and are received in a first-in-first-out fashion. The
+    following types of data can be passed through Channels: nil, boolean, number, string, and any
+    LÖVR object.
   ]],
   ]],
   constructor = 'lovr.thread.getChannel'
   constructor = 'lovr.thread.getChannel'
 }
 }

部分文件因文件數量過多而無法顯示