What is a good way to create an IObservable for a method?

后端 未结 5 1988
攒了一身酷
攒了一身酷 2021-02-05 11:30

Let\'s say, we have a class:

public class Foo
{
   public string Do(int param)
   {
   }
}

I\'d like to create an observable of values that are

5条回答
  •  不要未来只要你来
    2021-02-05 12:04

    Generally you want to avoid using Subjects. In my experiance it is a sign you are doing something wrong. Observable.Create or perhaps Generate are normally better fits.

    I would be interested to see what you are actually trying to do to see if we can provide a better answer. Lee

提交回复
热议问题