thermal-fn
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

thermal-fn

Persistence Cache Function | 持久化缓存函数


Usage

install

npm i thermal-fn
import { useThermal } from "thermal-fn"

const { invoke } = useThermal()

// The node will execute caching, even if the node restarts
// node 将会执行缓存,即使 node 重新启动
const result = await invoke(function largeComputing(boundary) {
  let i = 0;
  while (boundary - i !== 0) {
    i++;
  }
  return i;
}, 1000000000)

License

Made with markthree

Published under MIT License.

Readme

Keywords

Package Sidebar

Install

npm i thermal-fn

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

24.6 kB

Total Files

6

Last publish

Collaborators

  • markthree