【发布时间】:2015-02-12 20:13:52
【问题描述】:
我有这个异步请求:
Pubnub pn = new Pubnub(publishKey, subscribeKey, secretKey, cipherKey, enableSSL);
pn.HereNow("testchannel", res => //doesn't return a Task
{ //response
}, err =>
{ //error response
});
问题是我不知道如何同步运行它。请帮忙。
【问题讨论】:
-
什么是 Pubnub?那是你的吗?
-
同步还是异步?
-
@i3arnon 我想同步执行这个请求。所以我需要以某种方式等待回调。
-
请发送电子邮件至 support@pubnub.com,我们很乐意为您提供帮助。
标签: c# .net asynchronous async-await pubnub