while (true){
api.newsfeed.get({
'count': 1
}).then(result => console.log(result['items'][0]['post_id']))
}
(function(){
api.newsfeed.get({
'count': 1
}).then(result => console.log(result['items'][0]['post_id']))
setTimeout(arguments.callee,0);
})();
(function(){
var f = arguments.callee;
api.newsfeed.get({
'count': 1
}).then(function(result){
console.log(result['items'][0]['post_id']);
f();
})
})();