Skip to content

Scheduler

casty.scheduler()

Create a scheduler actor behavior.

casty.ScheduleTick dataclass

Schedule a message to be sent repeatedly at a fixed interval.

key instance-attribute

target instance-attribute

message instance-attribute

interval instance-attribute

__init__(key, target, message, interval)

casty.ScheduleOnce dataclass

Schedule a message to be sent once after a delay.

key instance-attribute

target instance-attribute

message instance-attribute

delay instance-attribute

__init__(key, target, message, delay)

casty.CancelSchedule dataclass

Cancel a previously registered schedule by key.

key instance-attribute

__init__(key)

casty.SchedulerMsg = ScheduleTick | ScheduleOnce | CancelSchedule