0.1.18 • Published 2 years ago

@cheetah.js/schedule v0.1.18

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

0.1.0

2 years ago

0.0.50

2 years ago

0.0.49

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago

0.0.46

2 years ago

0.0.42

2 years ago

0.0.30

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago