次の方法で共有


GpioController.WaitForEventAsync メソッド

定義

オーバーロード

WaitForEventAsync(Int32, PinEventTypes, CancellationToken)

eventType 型のイベントが受信されるか、取り消しが要求されるまでの非同期呼び出し。

WaitForEventAsync(Int32, PinEventTypes, TimeSpan)

eventType 型のイベントが受信されるか、一定期間が経過するまで待機する非同期呼び出し。

WaitForEventAsync(Int32, PinEventTypes, CancellationToken)

eventType 型のイベントが受信されるか、取り消しが要求されるまでの非同期呼び出し。

public System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult> WaitForEventAsync (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken token);
public virtual System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult> WaitForEventAsync (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken token);
member this.WaitForEventAsync : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult>
abstract member WaitForEventAsync : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult>
override this.WaitForEventAsync : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult>
Public Function WaitForEventAsync (pinNumber As Integer, eventTypes As PinEventTypes, token As CancellationToken) As ValueTask(Of WaitForEventResult)
Public Overridable Function WaitForEventAsync (pinNumber As Integer, eventTypes As PinEventTypes, token As CancellationToken) As ValueTask(Of WaitForEventResult)

パラメーター

pinNumber
Int32

コントローラーの番号付けスキームのピン番号。

eventTypes
PinEventTypes

待機するイベントの種類。

token
CancellationToken

操作がイベントの待機を停止する必要がある場合のキャンセル トークン。

戻り値

待機中の操作の結果を含む構造体を取得する操作を表すタスク

適用対象

WaitForEventAsync(Int32, PinEventTypes, TimeSpan)

eventType 型のイベントが受信されるか、一定期間が経過するまで待機する非同期呼び出し。

public System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult> WaitForEventAsync (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, TimeSpan timeout);
member this.WaitForEventAsync : int * System.Device.Gpio.PinEventTypes * TimeSpan -> System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult>
Public Function WaitForEventAsync (pinNumber As Integer, eventTypes As PinEventTypes, timeout As TimeSpan) As ValueTask(Of WaitForEventResult)

パラメーター

pinNumber
Int32

コントローラーの番号付けスキームのピン番号。

eventTypes
PinEventTypes

待機するイベントの種類。

timeout
TimeSpan

イベントを待機する時間。

戻り値

待機中の操作の結果を含む構造体を取得する操作を表すタスク。

適用対象