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

## [](#wait1)wait(T, 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 }
```