ChannelHistoryLength

ChannelHistoryLength

ChannelListen 的一个选项,指定在通道侦听器对象中最多缓存多少条消息.

更多信息

范例

基本范例  (1)

创建一个通道侦听器,将 ChannelHistoryLength 设为 10:

将 20 条消息发送到通道中:

只存储最近收到的 10 条消息:

删除通道,移除侦听器:

Wolfram Research (2020),ChannelHistoryLength,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.

文本

Wolfram Research (2020),ChannelHistoryLength,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.

CMS

Wolfram 语言. 2020. "ChannelHistoryLength." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.

APA

Wolfram 语言. (2020). ChannelHistoryLength. Wolfram 语言与系统参考资料中心. 追溯自 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: 22-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: 22-November-2024 ]}