mafintosh

mafintosh/thunky

Delay the evaluation of a paramless async function and cache the result

JavaScript
96
9
MIT License

thunky is a lightweight utility for delaying and caching the result of a paramless async function, ensuring it only executes once and reuses the result for subsequent calls. It's particularly useful for implementing lazy evaluation patterns, such as deferring database connections or expensive computations until they're actually needed. This project is ideal for Node.js developers looking to optimize performance and simplify async workflows.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

No contributors yet

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet