Difference between revisions of "Thread (Русский)"
m (→Смотрите также) |
|||
Line 13: | Line 13: | ||
}} | }} | ||
== Смотрите также == | == Смотрите также == | ||
− | * [[parent::love. | + | * [[parent::love.thread (Русский)]] |
[[Category:Types]] | [[Category:Types]] | ||
{{#set:Description=Представляет поток. | {{#set:Description=Представляет поток. | ||
}} | }} | ||
+ | |||
== Другие языки == | == Другие языки == | ||
{{i18n|Thread}} | {{i18n|Thread}} |
Revision as of 10:56, 1 August 2018
Available since LÖVE 0.7.0 |
This type is not supported in earlier versions. |
Поток - это часть кода, которая может выполняться параллельно с другими потоками.
Конструкторы
love.thread.newThread | Creates a new Thread from a filename, string or FileData object containing Lua code. |
Функции
Object:release | Immediately destroys the object's Lua reference. |
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
Thread:demand | Receive a message from a thread. Wait for the message to exist before returning. |
Thread:get | Get a value. |
Thread:getError | Retrieves the error string from the thread. |
Thread:getKeys | Returns the names of all messages as a table. |
Thread:getName | Get the name of a thread. |
Thread:isRunning | Returns whether the thread is currently running. |
Thread:kill | Forcefully terminate the thread. |
Thread:peek | Receive a message from a thread, but leave it in the message box. |
Thread:receive | Receive a message from a thread. |
Thread:send | Send a message. |
Thread:set | Set a value. |
Thread:start | Starts the thread. |
Thread:wait | Wait for a thread to finish. |
Смотрите также
Другие языки
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