handsontable / handsontable/hyperformula
Async functions support
Open
Nobody has claimed this yet.
Feature
Function
Verified
- Dominant language
- TypeScript
- Stars
- 2.8k
- Forks
- 171
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 7
Description
Description
Common request for our previous formula engine. Let's keep it as a feature request.
Sample
parser.setFunction('SUM_ASYNC', (params) => {
return new Promise((resolve) => {
return setTimeout(() => resolve(params[0] + params[1]), 1000));
}
});
parser.parse('SUM_ASYNC(2, 3)').then((result, error) => { });
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the parser.setFunction and parser.parse entry points shown in the sample to understand how function results are evaluated today. Define the async behavior and completion criteria for Promise-returning functions, including how the parser result should expose the resolved value, then add coverage for the SUM_ASYNC example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100