Share via


Subject.Synchronize<TSource, TResult> Method (ISubject<TSource, TResult>, IScheduler)

Synchronizes the messages on the subject and notifies observers on the specified scheduler.

Namespace:  System.Reactive.Subjects
Assembly:  System.Reactive (in System.Reactive.dll)

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.

Type Parameters

  • TSource
    The type source.
  • TResult
    Type of result.

Parameters

Return Value

Type: System.Reactive.Subjects.ISubject<TSource, TResult>
Subject whose messages are synchronized and whose observers are notified on the given scheduler.

See Also

Reference

Subject Class

Synchronize Overload

System.Reactive.Subjects Namespace