Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 745 Bytes

File metadata and controls

45 lines (32 loc) · 745 Bytes

Await

Synopsis

awaits asynchronous operations


Description

awaits the result of a task.


Examples

EXAMPLE 1

PipeScript -ScriptBlock {
    await $Websocket.SendAsync($SendSegment, 'Binary', $true, [Threading.CancellationToken]::new($false))
}

EXAMPLE 2

PipeScript -ScriptBlock {
    $receiveResult = await $Websocket.ReceiveAsync($receiveSegment, [Threading.CancellationToken]::new($false))
}

Parameters

CommandAst

Type Required Position PipelineInput
[CommandAst] true 1 true (ByValue)

Syntax

Await [-CommandAst] <CommandAst> [<CommonParameters>]