{{newin|[[0.7.0]]|070|type=type}}
A Thread is a chunk of code that can run in parallel with other threads. Data can be sent between different threads with [[Channel]] objects.

== Constructors ==
{{#ask: [[Category:Functions]] [[Constructs::Thread]] [[Concept:Current]]
| headers=hide
| default=None.
| format=template
| template=ListingFields
| introtemplate=ListingIntro
| outrotemplate=ListingOutro
| ?Description
| ?PrettySince
| ?PrettyRemoved
}}
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Thread||Object]] [[Concept:Current]]
| headers=hide
| format=template
| template=ListingFields
| introtemplate=ListingIntro
| outrotemplate=ListingOutro
| ?Description
| ?PrettySince
| ?PrettyRemoved
}}
== Supertypes ==
* [[parent::Object]]
== Notes ==
{{oldin|[[0.9.0]]|090|type=note|text=This method for retrieving errors has been replaced by [[Thread:getError]] and [[love.threaderror]]}}
If a Lua error occurs in the thread, a message with the name "error" gets pushed to its message pool. Retrieve the message with <tt>Thread:get('error')</tt>.
== See Also ==
* [[parent::love.thread]]
[[Category:Types]]
{{#set:Description=A Thread represents a thread.}}
== Other Languages ==
{{i18n|Thread}}