# WorkbookCalculation.recalculateAsync Method

> WorkbookCalculation.recalculateAsync method in the Node.js TypeScript API, with the parameter options, the return type Promise<void> and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > WorkbookCalculation > WorkbookCalculation.recalculateAsync Method
- **440 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcalculation/recalculateasync-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcalculation/recalculateasync-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcalculation/recalculateasync-method/llms-full.txt

---

Recalculates all formulas, awaiting asynchronous dependencies until the document becomes stable.

Owner: [WorkbookCalculation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcalculation/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
recalculateAsync(options?: { force?: boolean; }): Promise<void>
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `options` | `{ force?: boolean; } \| undefined` | Yes | Supported settings for this operation; omitted settings retain documented defaults. |

### Return Value

`Promise<void>`.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

async function applyWorkbookCalculationRecalculateAsync(control: ServerSheetControl) {
    const book = control.workbook;
    const workbookCalculation = book.calculation;

    await workbookCalculation.recalculateAsync();
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [WorkbookCalculation Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcalculation/llms-full.txt)
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)

---

## Nearby

- **Previous:** [WorkbookCalculation.precedents Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcalculation/precedents-method/llms-full.txt)
- **Next:** [WorkbookCalculation.registerFunction Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcalculation/registerfunction-method/llms-full.txt)
