【发布时间】:2019-12-13 22:33:06
【问题描述】:
在 iOS 13 Combine 框架中,共有三个 collect 运算符方法。前两个很明显,但第三个使用我无法弄清楚的类型。
collect(_:options:)
https://developer.apple.com/documentation/foundation/timer/timerpublisher/3329497-collect
func collect<S>(_ strategy: Publishers.TimeGroupingStrategy<S>,
options: S.SchedulerOptions? = nil)
-> Publishers.CollectByTime<Timer.TimerPublisher, S>
where S : Scheduler
谁能举例说明如何调用此方法?
【问题讨论】: