In Rx, I can create a subject (something) like this:
let s = new Subject<int>()
let subscription =
s.Subscribe (fun x ->
Console.WriteLine x
)
s.OnNext 123
The subject is both observable and an observer. This is useful when turning callbacks into streams.
What is the equivalent using F#'s built-in Observable module?