Rx\Observable::throttle PHP Method

throttle() public method

If items are emitted on the source observable prior to the expiration of the time period, the last item emitted on the source observable will be emitted.
public throttle ( $throttleDuration, null $scheduler = null ) : Rx\Observable\AnonymousObservable
$throttleDuration
$scheduler null
return Rx\Observable\AnonymousObservable
    public function throttle($throttleDuration, $scheduler = null)
    {
        return $this->lift(function () use($throttleDuration, $scheduler) {
            return new ThrottleOperator($throttleDuration, $scheduler);
        });
    }