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


AB 1747-M13 SER A SLC EEPROM Memory Module 1747-M13 picture

AB 1747-M13 SER A SLC EEPROM Memory Module 1747-M13

$102.00



New Factory Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747-M13 picture

New Factory Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747-M13

$82.98



1 PC New Factory Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747M13  picture

1 PC New Factory Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747M13

$98.00



1PC New In Box Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747M13 Surplus picture

1PC New In Box Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747M13 Surplus

$78.00



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$16.90



CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88







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