fsprojects / FSharp.Control.Reactive

Extensions and wrappers for using Reactive Extensions (Rx) with F#.
http://fsprojects.github.io/FSharp.Control.Reactive
Other
285 stars 59 forks source link

Observer.Create in the NuGet package #10

Closed ploeh closed 10 years ago

ploeh commented 10 years ago

I'm having trouble using the Observer.Create function:

type Observer with
    /// Creates an observer from the specified onNext function.
    static member Create(onNext) =
        Observer.Create(Action<_> onNext)

I've tried both of these alternatives, but the code doesn't compile:

FSharp.Reactive.Observer.Create (fun _ -> ())
FSharp.Reactive.Core.Observer.Create (fun _ -> ())

However, this code does compile:

System.Reactive.Observer.Create (fun _ -> ())

To make matters clear, I'm using the FSharp.Reactive NuGet package, which is currently 10 months old, so it's possible that this function simply doesn't exist in that package. If this is the case, could we please get an updated NuGet package?

If something else is the matter, could you please point out my errors?

forki commented 10 years ago

https://www.nuget.org/packages/FSharp.Reactive/2.1.131002 please try again

ploeh commented 10 years ago

That helped a lot. Thank you for your swift response :)