Channel
Available since LÖVE 0.9.0 |
This type is not supported in earlier versions. |
An object which can be used to send and receive data between different threads.
Constructors
love.thread.getChannel | Creates or retrieves a named thread channel. |
![]() |
|
love.thread.newChannel | Creates a new unnamed thread channel. |
![]() |
Functions
Channel:clear | Clears all the messages in the Channel queue. |
![]() |
|
Channel:demand | Wait for and retrieve the value of a Channel message. |
![]() |
|
Channel:getCount | Retrieves the number of messages in the Channel queue. |
![]() |
|
Channel:peek | Receive a message from a thread Channel, but leave it in the queue. |
![]() |
|
Channel:pop | Retrieve the value of a Channel message. |
![]() |
|
Channel:push | Send a message to a thread Channel. |
![]() |
|
Channel:supply | Send a message to a thread Channel and wait for a thread to accept it. |
![]() |
|
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. |
Supertypes
See Also
Category: