有没有一种方法来订阅的观察者异步 [英] Is there a way to subscribe an observer as async

查看:293
本文介绍了有没有一种方法来订阅的观察者异步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

,有没有办法做到这一点:

Given a synchronous observer, is there a way to do this:

observable.SubscribeAsync(observer);

和对所有方法观察异步调用或者是说我的东西在创建观察者时处理?

And have all methods on the observer called asynchronously or is that something I have to handle when creating the observer?

推荐答案

您可能想看看 ObserveOn SubscribeOn (<一个href=\"http://www.introtorx.com/content/v1.0.10621.0/15_SchedulingAndThreading.html#SubscribeOnObserveOn\">more信息和<一个href=\"http://stackoverflow.com/questions/7579237/whats-the-difference-between-subscribeon-and-observeon\">even更多信息)。

You might want to look into ObserveOn and SubscribeOn (more information and even more information).

这篇关于有没有一种方法来订阅的观察者异步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆