Skip to content

What about async execution? #3

@Cadienvan

Description

@Cadienvan

As we already introduced async candidateFunction in cache-candidate 1.5.1, what about bringing the same functionality for the invalidation?

We can already leverage the async mechanism of the hooks for it, so just checking if the result is a Promise and, if so, await for it could be enough.

Surely we'll have to bring in a couple more tests, but it would work.

@PellegrinoDurante as you are the "maintainer" of this plugin, what do you think? Wanna go together with it?

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions