> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/async/promise/custom-promises/futurevalue.md).

# futureValue()

{% tabs %}
{% tab title="💾 程式" %}
:floppy\_disk: replit：[awaiting multiple promises](https://replit.com/@pegasusroe/awaiting-multiple-promises-in-parallelseries#index.js)

```javascript
// ⭐ a value from future
function futureValue(value, seconds) {
    return new Promise(resolve => {
        setTimeout(resolve, seconds * 1000, value);
    });
};
```

{% endtab %}

{% tab title="⬇️ 應用" %}

* [await promises](/web/js/async/await/promises.md)
  {% endtab %}
  {% endtabs %}
