---
schema_version: "1"
id: b7f9bd4434525edaa39612aec1d7628fcef76209694d446773243cd954d9e2d5
title: wait
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.5/dw-runtime-functions-wait.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.5/dw-runtime-functions-wait
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5abf6050304ff92fc31bee4bbaf9e773cc9c9e72319f3a9b528d81447ff55c93
description: MuleSoft Documentation Site
release: "2.5"
latest: false
---
# wait

## [](#wait1)wait<T>(value: T, timeout: Number): T

指定されたタイムアウト期間 (ミリ秒) の間、実行を停止します。

<table><tbody><tr><td class="icon"><i class="fa icon-warning" title="Warning"></i></td><td class="content">実行を停止すると、スレッドがブロックされるため、遅延が発生したり、パフォーマンスが低下したり、ランタイム全体がフリーズしたりする可能性があります。この操作は、制限された機能テストを目的とするものです。 本番アプリケーションやパフォーマンステストで使用したり、デプロイされた複数のアプリケーションで使用したりしないでください。</td></tr></tbody></table>

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>value</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">任意の型の入力。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>timeout</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">待機する時間 (ミリ秒)。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、2000 ミリ秒 (2 秒) の間、実行を待機します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::Runtime
output application/json
---
{ "user" : 1 } wait 2000
```

#### [](#出力)出力

```JSON
{ "user": 1 }
```