Udostępnij za pośrednictwem


Observable.merge<'T> Function (F#)

Returns an observable for the merged observations from the sources. The returned object propagates success and error values arising from either source and completes when both the sources have completed.

Namespace/Module Path: Microsoft.FSharp.Control.Observable

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
Observable.merge : IObservable<'T> -> IObservable<'T> -> IObservable<'T>

// Usage:
Observable.merge source1 source2

Parameters

Return Value

An Observable that propagates information from both sources.

Remarks

For each observer, the registered intermediate observing object is not thread safe. That is, observations arising from the sources must not be triggered concurrently on different threads.

This function is named Merge in compiled assemblies. If you are accessing the function from a language other than F#, or through reflection, use this name.

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Control.Observable Module (F#)

Microsoft.FSharp.Control Namespace (F#)