Questions on how to use WaitForQueue

53 views
Skip to first unread message

lduc...@gmail.com

unread,
May 4, 2013, 12:01:03 AM5/4/13
to pirc...@googlegroups.com
Hi,

I have a question regarding how to use WaitForQueue.

What exactly does this class do, and how do you use it (i.e. can you give me an example?)

I'm guessing that by using this class, you can pause the current thread, and wait until the bot receives the specific event. Correct me if i'm wrong.

Thanks!

Leon Blakey

unread,
May 6, 2013, 6:17:01 PM5/6/13
to pirc...@googlegroups.com
Sorry for the delay. A good explanation with example code is on the feature page: https://code.google.com/p/pircbotx/wiki/Features#Easily_Handle_Multi-Line_Situations


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

lduc...@gmail.com

unread,
May 6, 2013, 8:27:20 PM5/6/13
to pirc...@googlegroups.com
Oh sorry I did not see that article. Thank you

lduc...@gmail.com

unread,
May 11, 2013, 9:30:24 PM5/11/13
to pirc...@googlegroups.com
Um, one more question. Is there anyway to make the WaitForQueue timeout? As in if it doesn't get the event in a predefined time interval, it will throw an Exception? Thanks


On Saturday, May 4, 2013 12:01:03 AM UTC-4, lduc...@gmail.com wrote:

Leon Blakey

unread,
May 11, 2013, 10:10:50 PM5/11/13
to pirc...@googlegroups.com
Hmmm, never really thought of that. I can add it as a feature


--
Reply all
Reply to author
Forward
0 new messages