RunAsync メソッド
| 編集/提案 ソースを表示RunAsync(IConnectable, Object)
非同期で処理を実行します。
宣言
public static Task RunAsync(this IConnectable connectable, object arg)
引数
| 型 | 名前 | 説明 |
|---|---|---|
| IConnectable | connectable | IConnectableインターフェースを実装したオブジェクトです。 |
| System.Object | arg | 処理の実行に必要な引数です。 |
戻り値
| 型 | 説明 |
|---|---|
| System.Threading.Tasks.Task | 非同期操作を表すオブジェクトです。 |
例外
| 型 | 条件 |
|---|---|
| System.ArgumentNullException |
RunAsync<TIn, TOut>(IConnectable<TIn, TOut>, TIn)
非同期で処理を実行します。
宣言
public static Task<TOut> RunAsync<TIn, TOut>(this IConnectable<TIn, TOut> connectable, TIn arg)
引数
| 型 | 名前 | 説明 |
|---|---|---|
| IConnectable<TIn, TOut> | connectable | IConnectable<TIn, TOut>インターフェースを実装したオブジェクトです。 |
| TIn | arg | 処理の実行に必要な引数です。 |
戻り値
| 型 | 説明 |
|---|---|
| System.Threading.Tasks.Task<TOut> | 戻り値を含む非同期操作を表すオブジェクトです。 |
型引数
| 名前 | 説明 |
|---|---|
| TIn | 接続子の引数の型です。 |
| TOut | 接続子の戻り値の型です。 |
例外
| 型 | 条件 |
|---|---|
| System.ArgumentNullException |