Suspend the user associated with the throttle

@return void
165189
public function suspend()
	{
		if ( ! $this->suspended)
		{
			$this->suspended    = true;
			$this->suspended_at = new DateTime;
			$this->save();
		}
	}
138048
public function isBanned()
    {
        $throttle = Auth::createThrottleModel()->where('user_id', $this->id)->first();
        return $throttle ? $throttle->is_banned : false;
    }
33943
def throttle_check(self):
        
        throttle = self._meta.throttle()
        wait = throttle.should_be_throttled(self)
        if wait:
            raise HttpError(
                "Throttled, wait {0} seconds.".format(wait),
                status=status.HTTP_503_SERVICE_UNAVAILABLE)
1257252
private function _logoutIfDisabledAccount()
    {
        if (! is_null($this->_viewer)) {
            if (! $this->_viewer->guest() && ! $this->_viewer->enabled) {
                $this->getService('com:people.helper.person')->logout();
                $this->getService('application.dispatcher')->getResponse()->setRedirect(route('index.php'));
            }
        }

        return;
    }
888845
final function throttle(string $userID) {
        if(empty($this->throttling) || $this->client->isOwner($userID)) {
            return null;
        }
        
        if(!$this->throttles->has($userID)) {
            $this->throttles->set($userID, array(
                'start' => \time(),
                'usages' => 0,
                'timeout' => $this->client->addTimer($this->throttling['duration'], function () use ($userID) {
                    $this->throttles->delete($userID);
                })
            ));
        }
        
        return $this->throttles->get($userID);
    }
1084427
public function lock()
    {
        if ($this->status !== self::BUSY) {
            throw new \LogicException('Cannot lock a slave that is not in busy state');
        }

        $this->status = self::LOCKED;
    }
436199
def suspend(instance_id, profile=None, **kwargs):
    '''
    

    '''
    conn = _auth(profile, **kwargs)
    return conn.suspend(instance_id)
381740
@Override
    public void suspend()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "suspend");

        _suspendedUOWType = ((UOWCurrent) _tranManager).getUOWType();

        switch (_suspendedUOWType)
        {
            case UOWCurrent.UOW_LOCAL:

                if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                    Tr.event(tc, "suspending (local)");
                }

                _suspendedUOW = LocalTranCurrentSet.instance().suspend();

                break;

            case UOWCurrent.UOW_GLOBAL:

                if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                    Tr.event(tc, "suspending (global)");
                }

                _suspendedUOW = _tranManager.suspend();

                break;

            case UOWCurrent.UOW_NONE:

                _suspendedUOW = null;
                break;

            default:
                break;
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "suspend", _suspendedUOWType);
    }
454429
protected function registerThrottle()
    {
        $this->app->singleton('throttle', function (Container $app) {
            $factory = $app['throttle.factory'];
            $transformer = $app['throttle.transformer'];

            return new Throttle($factory, $transformer);
        });

        $this->app->alias('throttle', Throttle::class);
    }
705860
function throttle(fn) {
	var called = false;
	var throttled = false;
	var timeout = 10000;

	function unthrottled() {
		throttled = false;
		maybeCall();
	}

	function maybeCall() {
		if (called && !throttled) {
			called = false;
			throttled = true;
			setTimeout(unthrottled, timeout);
			fn();
		}
	}

	return function() {
		called = true;
		maybeCall();
	};
}
383300
public function editUserForgot()
    {
        $this->controlAccessUserForgot();

        $this->setUserForgot();
        $this->setTitleEditUserForgot();
        $this->setBreadcrumbEditUserForgot();

        $this->setData('forgetful_user', $this->data_user);
        $this->setData('password_limit', $this->user->getPasswordLength());

        $this->submitUserForgot();
        $this->outputEditUserForgot();
    }
1171533
public function suspend()
	{
		if ( ! $this->suspended)
		{
			$this->suspended    = true;
			$this->suspended_at = $this->freshTimeStamp();
			$this->save();
		}
	}
887822
public function cancelTask()
	{
		// Set the redirect
		\App::redirect(
			\Route::url('index.php?option=' . $this->_option . ($this->_controller ? '&controller=' . $this->_controller : ''), false)
		);
	}
691412
protected void suspend()
    {
        if (tc.isEntryEnabled()) Tr.entry(tc, "suspend");

        _current = null;
        _state = Suspended;

        if (tc.isEntryEnabled()) Tr.exit(tc, "suspend");
    }
253245
public function setThrottle($throttle)
    {
        if (\is_string($throttle)) {
            $throttle = $this->container->make($throttle);
        }

        $this->throttle = $throttle;
    }
105667
public function extend($throttle)
    {
        if (is_callable($throttle)) {
            $throttle = call_user_func($throttle, $this->container);
        }

        $this->throttles->push($throttle);
    }
297929
public function cleanupSession()
    {
        if ($this->userSession) {
            $this->resetDriver();
            $this->createRequest('delete', "/user/sessions/{$this->userSession->sessionId}");
            $this->restDriver->setHeader('cookie', "{$this->userSession->sessionName}={$this->userSession->sessionId}");
            $this->restDriver->setHeader('x-csrf-token', $this->userSession->csrfToken);
            $this->sendRequest();
            $this->userSession = null;
        }
    }