{{newin|[[0.9.0]]|090|type=function}}
Retrieves the value of a Channel message and removes it from the message queue.

It returns nil if there are no messages in the queue.

{{notice|This function doesn't free up the memory used by a Channel, it needs to be garbage collected to release the memory.}}
== Function ==
=== Synopsis ===
<source lang="lua">
value = Channel:pop( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|Variant|value|The contents of the message.}}
== See Also ==
* [[parent::Channel]]
* [[Channel:push]]
* [[Channel:demand]]
[[Category:Functions]]
{{#set:Description=Retrieve the value of a Channel message.}}
== Other Languages ==
{{i18n|Channel:pop}}