docs » cp.rx.TimeoutScheduler
A scheduler that uses the hs.timer library to schedule events on an event loop.
- Methods - API calls which can only be made on an object returned by a constructor
- create
- schedule
- stopAll
| Signature | cp.rx.TimeoutScheduler.create() -> cp.rx.TimeoutScheduler |
|---|---|
| Type | Method |
| Description | Creates a new TimeoutScheduler. |
| Returns |
|
| 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 |
|
| Returns |
|
| Signature | cp.rx.TimeoutScheduler:stopAll() -> nil |
|---|---|
| Type | Method |
| Description | Stops all future timers from running and clears them. |