Bagikan melalui


Observable.Amb<TSource> Method (IObservable<TSource>[])

Propagates the observable sequence that reacts first with a specified sources.

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

Syntax

'Declaration
Public Shared Function Amb(Of TSource) ( _
    ParamArray sources As IObservable(Of TSource)() _
) As IObservable(Of TSource)
'Usage
Dim sources As IObservable(Of TSource)()
Dim returnValue As IObservable(Of TSource)

returnValue = Observable.Amb(sources)
public static IObservable<TSource> Amb<TSource>(
    params IObservable<TSource>[] sources
)
public:
generic<typename TSource>
static IObservable<TSource>^ Amb(
    ... array<IObservable<TSource>^>^ sources
)
static member Amb : 
        sources:IObservable<'TSource>[] -> IObservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

Parameters

  • sources
    Type: System.IObservable<TSource>[]
    The observable sources competing to react first.

Return Value

Type: System.IObservable<TSource>
An observable sequence that surfaces any of the given sequences, whichever reacted first.

See Also

Reference

Observable Class

Amb Overload

System.Reactive.Linq Namespace