Table of contents
Collapse the table of content
Expand the table of content

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

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

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


source1 Type: IObservable<'T>

The first Observable.

source2 Type: IObservable<'T>

The second Observable.

Return Value

An Observable that propagates information from both sources.


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.


Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Control.Observable Module (F#)

Microsoft.FSharp.Control Namespace (F#)

© 2020 Microsoft