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. 0.9.0
love.thread.newChannel Creates a new unnamed thread channel. 0.9.0

Functions

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: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:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.

Supertypes

See Also

Channel:demand

Channel:demand Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the value of a Channel message and removes

2017-03-21 15:42:07
Channel:getCount

Channel:getCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the number of messages in the thread

2017-03-21 15:42:08
Channel:peek

Channel:peek Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the value of a Channel message, but leaves

2017-03-21 15:42:09
Channel:clear

Channel:clear Available since LÖVE 0.9.0 This function is not supported in earlier versions. Clears all the messages in the Channel queue.

2017-03-21 15:42:05
Channel:supply

Channel:supply Available since LÖVE 0.9.0 This function is not supported in earlier versions. Send a message to the thread Channel and wait

2017-03-21 15:42:12
Channel:pop

Channel:pop Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the value of a Channel message and removes

2017-03-21 15:42:10
Channel:push

Channel:push Available since LÖVE 0.9.0 This function is not supported in earlier versions. Send a message to the thread Channel. See

2017-03-21 15:42:11
Channel:count

Channel:count Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the number of messages in the thread

2017-03-21 15:42:06
Channel:performAtomic

Channel:performAtomic Available since LÖVE 0.10.0 This function is not supported in earlier versions. Executes the specified function atomically

2017-03-21 15:42:09