@the-/refresher

15.4.0 • Public • Published

@the-/refresher

npm Version

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

function

class

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/refresher

Weekly Downloads

0

Version

15.4.0

License

MIT

Unpacked Size

47.4 kB

Total Files

26

Last publish

Collaborators

  • okunishinishi