Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 2.4 KB

cp.rx.TimeoutScheduler.md

File metadata and controls

36 lines (28 loc) · 2.4 KB

docs » cp.rx.TimeoutScheduler


A scheduler that uses the hs.timer library to schedule events on an event loop.

API Overview

  • Methods - API calls which can only be made on an object returned by a constructor
  • create
  • schedule
  • stopAll

API Documentation

Methods

Signature cp.rx.TimeoutScheduler.create() -> cp.rx.TimeoutScheduler
Type Method
Description Creates a new TimeoutScheduler.
Returns
  • The new TimeoutScheduler.
Signature cp.rx.TimeoutScheduler:schedule(action[, delay]) -> cp.rx.TimeoutScheduler
Type Method
Description Schedules an action to run at a future point in time.
Parameters
  • action - The action to run.
  • delay - The delay, in milliseconds. Defaults to 0.
Returns
Signature cp.rx.TimeoutScheduler:stopAll() -> nil
Type Method
Description Stops all future timers from running and clears them.