Skip to content

RodolfoSilva/schedulejs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

Schedulejs

Schedule.js is licensed under the terms of the MIT License.

Usage

var R = Schedule({second: 0.01}).start(function(loop) {
    console.log('R stoped afeter ' + this.settings.auto_stop + ' cycles');
}).stop(2);
var C = Schedule({second: 0.01}).delay().start(function(loop) {
    console.log('C stoped afeter ' + this.settings.auto_stop + ' cycles');
}).stop(8);

Methods

Schedule.init

Schedule.start

Schedule.stop

Schedule.delay

Schedule.interval

Options

Option Default
month 0
day 0
hour 0
minute 0
second 0

Contributing

You can help this project by reporting problems, suggestions, or contributing to the code.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Creator

Rodolfo Silva