Difference between revisions of "Channel (Français)"
(→Constructeurs) |
|||
Line 3: | Line 3: | ||
== Constructeurs == | == Constructeurs == | ||
− | {{#ask: [[Category:Functions]] [[Constructs::Channel]] | + | {{#ask: [[Category:Functions (Français)]] [[Constructs::Channel (Français)]] |
| headers=hide | | headers=hide | ||
| default=None. | | default=None. | ||
Line 14: | Line 14: | ||
| ?PrettyRemoved | | ?PrettyRemoved | ||
}} | }} | ||
+ | |||
== Fonctions == | == Fonctions == | ||
{{#ask: [[Category:Functions]] [[parent::Channel||Object]] [[Concept:Current]] | {{#ask: [[Category:Functions]] [[parent::Channel||Object]] [[Concept:Current]] |
Latest revision as of 02:34, 28 December 2020
Available since LÖVE 0.9.0 |
This type is not supported in earlier versions. |
Un objet pouvant être utilisé pour envoyer et recevoir de données entre les threads (fils d'exécution).
Constructeurs
love.thread.getChannel (Français) | Crée ou récupère un channel de thread nomée. | ||
love.thread.newChannel (Français) | Crée un Channel (canal) de Thread (fil d’exécution) sans nom. |
Fonctions
Channel:clear | Clears all the messages in the Channel queue. | 0.9.0 | |
Channel:demand | Wait for and retrieve the value of a Channel message. | 0.9.0 | |
Channel:getCount | Retrieves the number of messages in the Channel queue. | 0.9.0 | |
Channel:hasRead | Gets whether a pushed value has been popped or otherwise removed from the Channel. | 11.0 | |
Channel:peek | Receive a message from a thread Channel, but leave it in the queue. | 0.9.0 | |
Channel:performAtomic | Executes the specified function atomically with respect to this Channel. | 0.10.0 | |
Channel:pop | Retrieve the value of a Channel message. | 0.9.0 | |
Channel:push | Send a message to a thread Channel. | 0.9.0 | |
Channel:supply | Send a message to a thread Channel and wait for a thread to accept it. | 0.9.0 | |
Object:release | Immediately destroys the object's Lua reference. | 11.0 | |
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. |
Supertypes
Voir également
Autres langues
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info