Subject.Synchronize < TSource, TResult > 方法 (ISubject < TSource, TResult > , IScheduler)
同步處理主旨上的訊息,並在指定的排程器上通知觀察者。
Namespace:System.Reactive.Subjects
裝配: System.Reactive.dll) 中的 System.Reactive (
Syntax
'Declaration
Public Shared Function Synchronize(Of TSource, TResult) ( _
subject As ISubject(Of TSource, TResult), _
scheduler As IScheduler _
) As ISubject(Of TSource, TResult)
'Usage
Dim subject As ISubject(Of TSource, TResult)
Dim scheduler As IScheduler
Dim returnValue As ISubject(Of TSource, TResult)
returnValue = Subject.Synchronize(subject, _
scheduler)
public static ISubject<TSource, TResult> Synchronize<TSource, TResult>(
ISubject<TSource, TResult> subject,
IScheduler scheduler
)
public:
generic<typename TSource, typename TResult>
static ISubject<TSource, TResult>^ Synchronize(
ISubject<TSource, TResult>^ subject,
IScheduler^ scheduler
)
static member Synchronize :
subject:ISubject<'TSource, 'TResult> *
scheduler:IScheduler -> ISubject<'TSource, 'TResult>
JScript does not support generic types and methods.
類型參數
- TSource
類型來源。
- TResult
結果的類型。
參數
- subject
類型:System.Reactive.Subjects.ISubject< TSource、 TResult>
要同步處理的主體。
- scheduler
類型: System.Reactive.Concurrency.IScheduler
要通知觀察者的排程器。
傳回值
類型:System.Reactive.Subjects.ISubject< TSource、 TResult>
主旨,其訊息已同步處理,且觀察者會在指定的排程器上收到通知。