mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 21:23:54 +01:00
24 lines
711 B
Markdown
24 lines
711 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Grafting](./bitburner.grafting.md) > [waitForOngoingGrafting](./bitburner.grafting.waitforongoinggrafting.md)
|
||
|
|
||
|
## Grafting.waitForOngoingGrafting() method
|
||
|
|
||
|
Wait until the ongoing grafting finishes or is canceled.
|
||
|
|
||
|
**Signature:**
|
||
|
|
||
|
```typescript
|
||
|
waitForOngoingGrafting(): Promise<void>;
|
||
|
```
|
||
|
**Returns:**
|
||
|
|
||
|
Promise<void>
|
||
|
|
||
|
A promise that resolves when the current grafting finishes or is canceled. If there is no current work, the promise resolves immediately. If the current work is not a grafting work, the promise rejects immediately.
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
RAM cost: 1 GB
|
||
|
|