åå¹´åã®è©±é¡ã§ãããããã¯ãã¼ã¯ã®æ´çã§ãã¯ãã¼ã¸ã£ã«ããè¶ è»½é並è¡ããã»ã¹ã®ç°¡åå®è£ æ³ã [1] ãåºã¦ããã®ã§ Lua ã§åçµãã¦ã¿ã¾ããã ã¾ãå®ç´ãªç¿»è¨³ã function new() return { senders = {}, receivers = {} } end function send(channel, ...) if #channel.receivers == 0 then table.insert(channel.senders, {...}) -- push else local process = table.remove(channel.receivers, 1) -- shift process(...) end end function receive(channel, process) if #channel.senders == 0 then tab
{{#tags}}- {{label}}
{{/tags}}