BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 01-06-2011, 02:59 AM   #1 (permalink)
New Member
 
Join Date: Oct 2010
Model: 9650
PIN: N/A
Carrier: Developer
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default invokeLater() and invokeAndWait() ?

Please Login to Remove!

Hi all,


Can you explain to me about difference of invokeLater() and invokeAndWait() method?


When should we use invokeLater() and when should we use invokeAndWait() method?


Thank you !
Offline  
Old 01-06-2011, 07:48 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: invokeLater() and invokeAndWait() ?

invokeAndWait() will not return until the Runnable.run() method returns, invokeLater() returns immediately, the Runnable.run() method is run later. When you should use each depends on your program logic.
__________________
My other Blackberry is a PlayBook.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HP 08505-60231 Freq Control/Signal Processor Interconnect Cables Lot of 6
$180.0
HP 08505-60231 Freq Control/Signal Processor Interconnect Cables Lot of 6 pictureOnly 220v desoldering station for A8/A9 CPU unsolder for iphone device PPD120
$249.5
Only 220v desoldering station for A8/A9 CPU unsolder for iphone device PPD120 pictureSMT CIRCUIT BOARD 571-509-037 CPU2K 571509-607
$140.0
SMT CIRCUIT BOARD 571-509-037 CPU2K 571509-607 pictureAvaya Lucent Partner ACS Processor Module R5.0 103G13(28)R5
$98.99
Avaya Lucent Partner ACS Processor Module R5.0 103G13(28)R5 pictureSIEMENS SINUMERIK GILDEMEISTER 65 CPU CARD 6FC5110-0DB02-0AA2 6FC51100DB020AA2
$1475.0
SIEMENS SINUMERIK GILDEMEISTER 65 CPU CARD 6FC5110-0DB02-0AA2 6FC51100DB020AA2 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.