共用方式為


IBroadcastChannelSubscription.Attach<T> 方法

定義

public System.Threading.Tasks.Task Attach<T> (Func<T,System.Threading.Tasks.Task> onPublished, Func<Exception,System.Threading.Tasks.Task> onError = default);
abstract member Attach : Func<'T, System.Threading.Tasks.Task> * Func<Exception, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function Attach(Of T) (onPublished As Func(Of T, Task), Optional onError As Func(Of Exception, Task) = Nothing) As Task

類型參數

T

參數

onPublished
Func<T,Task>
onError
Func<Exception,Task>

傳回

適用於