Strip the result of promise

37 views
Skip to first unread message

betepahos

unread,
May 2, 2013, 4:37:25 PM5/2/13
to twitter...@googlegroups.com
Sorry for the newbie question how to strip the promise to get only the result for the column?

Ryan King

unread,
May 6, 2013, 12:38:09 PM5/6/13
to twitter...@googlegroups.com
What do you mean by strip? Are you saying that you want to get the value underlying the future? If that's the case, you will just have to wait. :)

-ryan


On Thu, May 2, 2013 at 4:37 PM, betepahos <bete...@gmail.com> wrote:
Sorry for the newbie question how to strip the promise to get only the result for the column?

--
You received this message because you are subscribed to the Google Groups "Twitter's Cassie" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twitter-cassi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

betepahos

unread,
May 17, 2013, 4:12:11 PM5/17/13
to twitter...@googlegroups.com
when println the result i get Promise@1629765833(state=Done(Return(Some(Column("columnname","result",Some(1368101853605000),None)))))

Ryan King

unread,
May 17, 2013, 4:19:16 PM5/17/13
to twitter...@googlegroups.com
There are several ways to go about this. The simplest ways is "just use map", but there are more in-depth docs here:


Note: don't use .get or .apply if you can avoid it.

-ryan


On Fri, May 17, 2013 at 1:12 PM, betepahos <bete...@gmail.com> wrote:
when println the result i get Promise@1629765833(state=Done(Return(Some(Column("columnname","result",Some(1368101853605000),None)))))
Reply all
Reply to author
Forward
0 new messages