Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.11 KB

takelastwithtime.md

File metadata and controls

25 lines (14 loc) · 1.11 KB

{% if book.isPdf %}

takeLastWithTime

{% else %}

{% endif %}

Returns elements within the specified duration from the end of the observable source sequence, using the specified schedulers to run timers and to drain the collected elements.

Arguments

  1. duration (Number): Duration for taking elements from the end of the sequence.
  2. [timeScheduler=Rx.Scheduler.timeout] (Scheduler): Scheduler to run the timer on. If not specified, defaults to timeout scheduler.
  3. [loopScheduler=Rx.Scheduler.currentThread] (Scheduler): Scheduler to drain the collected elements. If not specified, defaults to current thread scheduler.

Returns

(Observable): An observable sequence with the elements taken during the specified duration from the end of the source sequence.

Example