Constructors
constructor
- new Schedule(store, encoder, schedule): Schedule
Properties
Private
encoder
encoder: IEncoder<unknown, undefined | string> schedule
schedule: Schedule
Methods
delete
- delete(): Promise<void>
Returns Promise<void>
Static
create
- create(store, encoder, id, cron, promiseId, promiseTimeout, opts?): Promise<Schedule>
Returns Promise<Schedule>
Static
search
- search(store, encoder, id, tags?, limit?): AsyncGenerator<Schedule[], void, unknown>
Parameters
- store: IScheduleStore
- encoder: IEncoder<unknown, undefined | string>
- id: string
Optional
tags: Record<string, string>Optional
limit: number
Returns AsyncGenerator<Schedule[], void, unknown>