Skip to content

Commit 9d7a333

Browse files
StartAutomatingStartAutomating
authored andcommitted
Adding await keyword (Fixes #181)
1 parent 21387e8 commit 9d7a333

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

docs/Await.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
Await
3+
-----
4+
### Synopsis
5+
awaits asynchronous operations
6+
7+
---
8+
### Description
9+
10+
awaits the result of a task.
11+
12+
---
13+
### Examples
14+
#### EXAMPLE 1
15+
```PowerShell
16+
PipeScript -ScriptBlock {
17+
await $Websocket.SendAsync($SendSegment, 'Binary', $true, [Threading.CancellationToken]::new($false))
18+
}
19+
```
20+
21+
#### EXAMPLE 2
22+
```PowerShell
23+
PipeScript -ScriptBlock {
24+
$receiveResult = await $Websocket.ReceiveAsync($receiveSegment, [Threading.CancellationToken]::new($false))
25+
}
26+
```
27+
28+
---
29+
### Parameters
30+
#### **CommandAst**
31+
32+
|Type |Requried|Postion|PipelineInput |
33+
|------------------|--------|-------|--------------|
34+
|```[CommandAst]```|true |1 |true (ByValue)|
35+
---
36+
### Syntax
37+
```PowerShell
38+
Await [-CommandAst] <CommandAst> [<CommonParameters>]
39+
```
40+
---
41+
42+

0 commit comments

Comments
 (0)