0.1.18 • Published 5 months ago

@cheetah.js/schedule v0.1.18

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Schedule plugin for Cheetah.js

This plugin provides a simple way to schedule tasks in Cheetah.js.

Installation

For install, run the command below:

bun install @cheetah.js/schedule

Usage

Only add the plugin to the Cheetah.js instance:

import {Cheetah} from '@cheetah.js/core';

new Cheetah().use(CheetahSchedule).listen();

Schedule tasks

Example:

import { Cheetah, Service, Get, Schedule } from '@cheetah.js/core';

@Service()
export class HomeController {
  @Schedule('* * * * * *')
  index() {
    return '';
  }
  
  @Interval(1000)
  index() {
    return '';
  }
  
  @Timeout(1000)
  index() {
    return '';
  } 
}
0.1.18

5 months ago

0.1.0

6 months ago

0.0.50

6 months ago

0.0.49

6 months ago

0.0.48

6 months ago

0.0.47

6 months ago

0.0.46

6 months ago

0.0.42

6 months ago

0.0.30

6 months ago

0.0.15

6 months ago

0.0.14

6 months ago

0.0.13

6 months ago

0.0.12

6 months ago

0.0.11

6 months ago

0.0.10

6 months ago