// Expected something like this
var message = await horizon('message').get(1).fetch().toPromise()
// In real life
horizon('message').get(1).fetch().subscribe((message)=>process(message))
// Simulate
promise = new Promise((resolve, reject)=>{
horizon('message').get(1).fetch().subscribe(resolve,reject)
})
有没有更简单的方法来互换承诺和地平线的rxjs可观察?