BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-06-2011, 02:59 AM   #1
levanphong7887
New Member
 
Join Date: Oct 2010
Model: 9650
PIN: N/A
Carrier: Developer
Posts: 14
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
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Ram Kl-1 picture

Ram Kl-1

$700.00



Raspberry Pi 4 Model B 8 GB RAM picture

Raspberry Pi 4 Model B 8 GB RAM

$60.97



RAM MODULE (COMES WITH WIRING HARDNESS) picture

RAM MODULE (COMES WITH WIRING HARDNESS)

$200.00



790-400 Robertshaw Ram-4 Ignition Module Control ***Free Shipping*** picture

790-400 Robertshaw Ram-4 Ignition Module Control ***Free Shipping***

$124.99



37061 - IMPERIAL RAM MODULE -  picture

37061 - IMPERIAL RAM MODULE -

$205.00



KUHN GMD 700 Disc Mower Hyd Cyl Seal Kit 60Bore 25 mm Ram picture

KUHN GMD 700 Disc Mower Hyd Cyl Seal Kit 60Bore 25 mm Ram

$82.99







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