create account

RE: Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*() by pilcrow

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @jfollas/write-a-steemit-web-app-part-9-retrieving-content-with-getdiscussionsby

· @pilcrow ·
Ah, I never realized *Async is just a convention for Bluebird promises. I might as well start using that too then. It makes sense that it's nice to see at a glance whether a method returns a promise or not, just like the $ suffix for Observables that many people use.
properties (22)
authorpilcrow
permlinkre-jfollas-write-a-steemit-web-app-part-9-retrieving-content-with-getdiscussionsby-20170808t205225153z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-08-08 20:52:24
last_update2017-08-08 20:52:24
depth1
children1
last_payout2017-08-15 20:52:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length267
author_reputation2,531,070,549,481
root_title"Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id11,214,284
net_rshares0
@jfollas ·
$0.08
It's at least a convention for Bluebird's `Promise.promisifyAll()` feature to turn functions with Node-style callbacks into promises:

http://bluebirdjs.com/docs/api/promise.promisifyall.html
👍  
properties (23)
authorjfollas
permlinkre-pilcrow-re-jfollas-write-a-steemit-web-app-part-9-retrieving-content-with-getdiscussionsby-20170809t011346806z
categorysteemdev
json_metadata{"tags":["steemdev"],"links":["http://bluebirdjs.com/docs/api/promise.promisifyall.html"],"app":"steemit/0.1"}
created2017-08-09 01:13:48
last_update2017-08-09 01:13:48
depth2
children0
last_payout2017-08-16 01:13:48
cashout_time1969-12-31 23:59:59
total_payout_value0.063 HBD
curator_payout_value0.020 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length191
author_reputation4,351,701,088,490
root_title"Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id11,233,634
net_rshares23,181,777,527
author_curate_reward""
vote details (1)