fix(readme): fix readme
This commit is contained in:
parent
d789eec558
commit
63405fc577
@ -36,7 +36,7 @@ This class provides scheduling of functions with a cron syntax
|
||||
```typescript
|
||||
import { CronManager } from '@pushrocks/smarrtime';
|
||||
const cronManagerInstance = new CronManager();
|
||||
cronManagerInstance.addConrjob('* * * * * *', async () => {
|
||||
cronManagerInstance.addCronjob('* * * * * *', async () => {
|
||||
console.log('hello'); // will log 'hello' to console once every second;
|
||||
});
|
||||
cronManagerInstance.start();
|
||||
|
Loading…
Reference in New Issue
Block a user