Channel (programming): Difference between revisions

Content deleted Content added
Liflon (talk | contribs)
Go: Add internal link to Go the programming language
Line 12:
 
=== Lua Love2D ===
The [[Löve (game engine)|Love2D]] library which is part ofuses the [[Lua (programming language)|Lua]] programming language implements channels with push and pop operations similar to stacks. The pop operation will block so as long as there is data resident on the stack. A demand operation is equivalent to pop, except it will block until there is data on the stack<syntaxhighlight lang="lua">
-- A string containing code which will be interpreted by a function such as loadstring(),
-- but on the C side to start a native thread.