timeouter

1.0.2 • Public • Published

Create and manage repeating tasks

Getting Started

[sudo] npm install timeouter --save

Examples

 
//Start a basic repeating log
var func = timeouter.add({
    func: function() {
        console.log("Repeating event")
    },
    timeout: 1000
})
 
//Call another method
var func = timeouter.add({
    func: yourMethod,
    timeout: 1000
})
 
//Call with a function declaration
var func = timeouter.add({
    func: function() {
        yourMethod("Hello World!");
    },
    timeout: 1000
})
 
//Stop the repeater
func.remove();
 
//Call the repeater method as a one-off
func.method();
 
//Get list of all running timers
timeouter.get();
 

Usage

 
var timeouter = require('timeouter');
 

Copyright (c) 2015 Arthur Mingard. See LICENSE for further details.

Dependents (0)

Package Sidebar

Install

npm i timeouter

Weekly Downloads

15

Version

1.0.2

License

MIT

Last publish

Collaborators

  • arthurmingard