Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
starry-shivam authored Jun 26, 2024
1 parent 1d31be8 commit 0339b95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,12 @@ val job = Job(
// Callback function that will be executed when the job is triggered.
callback = { println("OneTime Job executed at ${ZonedDateTime.now(timeZone)}") }
)
// add the job to the scheduler
// Add it to the scheduler
scheduler.addJob(job)

// ..or like this (shortcut/convinience method)
// or like this! (shortcut / convinience method)
// This will create a job with a unique ID and add it to the scheduler
// See the documentation for more details on the parameters and other
// such convinience methods.
// See the documentation for more details on other such convinience methods.
scheduler.runRepeating(intervalSeconds = 10) {
println("Meow >~<") // every 10 seconds
}
Expand Down

0 comments on commit 0339b95

Please sign in to comment.