handsontable / handsontable/hyperformula

Async functions support

Open
#9 15 comments 4 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.