ptsytovich

Untitled

Nov 13th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.28 KB | None | 0 0
  1. let  myThrottleScheduler = SerialDispatchQueueScheduler(qos:.default)
  2. let sourceInterval  = Observable<Int>.interval(0.5, scheduler: myThrottleScheduler)
  3. let throttleSequence = sourceInterval.throttle(1,scheduler: myThrottleScheduler)
  4. _ = throttleSequence.subscribe{
  5.     print($0)
Advertisement
Add Comment
Please, Sign In to add comment