简体   繁体   English

在一段安静的时间后将RX序列移到一批中吗?

[英]Timeshift an RX sequence into a batch after a quiet period?

I need my system to send an email summarising things that have happened after a period of inactivity. 我需要我的系统发送一封电子邮件,概述在一段时间不活动后发生的事情。 How can I do this with RX? 如何使用RX做到这一点?

Try this: 尝试这个:

IObservable<IList<T>> query =
    source.Publish(hot => hot.Buffer(() => hot.Throttle(TimeSpan.FromSeconds(1.0))));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM