ChannelHistoryLength

ChannelHistoryLength

is an option to ChannelListen that specifies the maximum number of messages to cache in the channel listener object.

Details

Examples

Basic Examples  (1)

Create a channel listener with ChannelHistoryLength set to 10:

Send 20 messages to the channel:

Only the 10 most recently received messages are stored:

Delete the channel, which removes the listener:

Wolfram Research (2020), ChannelHistoryLength, Wolfram Language function, https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.

Text

Wolfram Research (2020), ChannelHistoryLength, Wolfram Language function, https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.

CMS

Wolfram Language. 2020. "ChannelHistoryLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.

APA

Wolfram Language. (2020). ChannelHistoryLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChannelHistoryLength.html

BibTeX

@misc{reference.wolfram_2024_channelhistorylength, author="Wolfram Research", title="{ChannelHistoryLength}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ChannelHistoryLength.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_channelhistorylength, organization={Wolfram Research}, title={ChannelHistoryLength}, year={2020}, url={https://reference.wolfram.com/language/ref/ChannelHistoryLength.html}, note=[Accessed: 21-November-2024 ]}