Skip to content

Add promiseMemo function #381

@aleclarson

Description

@aleclarson

Anyone is free to implement this proposal. Note that promiseMemo is the preferred name.

Discussed in https://github.com/orgs/radashi-org/discussions/200

Originally posted by aleclarson August 19, 2024
Basically memo but rejected promises are not cached. Note that the "memo key" algorithm must be identical between memo and memoAsync.

Reference implementation: https://github.com/sindresorhus/p-memoize

Metadata

Metadata

Assignees

Labels

in progressThings being worked onnew featureThis PR adds a new function or extends an existing one

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions