npm.io
1.0.6 • Published 7 years ago

the-refresher

Licence
MIT
Version
1.0.6
Deps
2
Size
46 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

the-refresher

Build Status npm Version JS Standard

Refresher of the-db

Installation

$ npm install the-refresher --save

Usage

'use strict'

const {TheRefresher} = require('the-refresher')

async function tryExample () {
  const refresher = new TheRefresher(async () => {
    // Do something to refresh
    /* .. */
  }, {
    interval: 3000,
  })

  await refresher.start()
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Keywords