Difference between revisions of "Channel (Português)"

Line 15: Line 15:
 
}}
 
}}
 
== Funções ==
 
== Funções ==
{{#ask: [[Category:Functions]] [[parent::Channel (Português)||Object (Português)]]
+
{{#ask: [[Category:Functions]] [[parent::Channel||Object (Português)]]
 
| headers=hide
 
| headers=hide
 
| format=template
 
| format=template

Revision as of 19:31, 10 April 2014

Available since LÖVE 0.9.0
This type is not supported in earlier versions.

Um objeto que pose ser usado para enviar e receber dados entre diferentes threads.

Construtores

Nenhum.

Funções

Channel:clear Clears all the messages in the Channel queue. Added since 0.9.0
Channel:demand Wait for and retrieve the value of a Channel message. Added since 0.9.0
Channel:getCount Retrieves the number of messages in the Channel queue. Added since 0.9.0
Channel:hasRead Gets whether a pushed value has been popped or otherwise removed from the Channel. Added since 11.0
Channel:peek Receive a message from a thread Channel, but leave it in the queue. Added since 0.9.0
Channel:performAtomic Executes the specified function atomically with respect to this Channel. Added since 0.10.0
Channel:pop Retrieve the value of a Channel message. Added since 0.9.0
Channel:push Send a message to a thread Channel. Added since 0.9.0
Channel:supply Send a message to a thread Channel and wait for a thread to accept it. Added since 0.9.0
Object:type (Português) Obtém o tipo do objeto como um string.
Object:typeOf (Português) Verifica se um objeto é de um certo tipo.

Supertipos

Veja também

Outros Idiomas