Skip to content

Commit

Permalink
Update README.md (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
P4sca1 authored Jul 3, 2023
1 parent ee187c2 commit 4c4993e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ cron.matchDate(date: Date): boolean
## Schedule tasks based on cron expressions
You can schedule tasks to be executed based on a cron expression. _cron-schedule_ comes with 2 different schedulers.

If you use TypeScript, make sure you set `comilerOptions.nodeResolution` to `node16` or `nodenext`.

### 1. Timer based scheduler
The timer based cron scheduler creates one timer for every scheduled cron.
When the node timeout limit of ~24 days would be exceeded, it uses multiple consecutive timeouts.
Expand Down

0 comments on commit 4c4993e

Please sign in to comment.