19
votes
Vote UpVote

Async/Await in Delphi

The Delphi Geek – Let’s assume you’ve inherited this pretty useless code. procedure TForm125.Button1Click(Sender: TObject); var button: TButton; begin button := Sender as TButton; button.Caption := 'Working ...'; button.Enabled := false; Sleep(5000); button.Enabled := true; button.Caption := 'Done!'; end; Now, your boss says, you have to make it parallel so the user can start three copies of it. (You also have to add two new buttons to the form to start those instances but that’s easy to do.) Read more »--- Published under the Creative Commons Attribution 3.0 license
Favorite? Off-Topic? gabr @ 2012-07-31 21:48

Statistics

Visits: 1447
Votes: 19
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Barton_Stano
Chris
corus
Daniele Teti
Edwin | Dev of LIVEditor
Ericc
Francis Ruiz
François
Jeroen Pluimers
Jørn E. Angeltveit
oschwab
Paolo Sciarrini
Ravaut123
Rob McDonell
Rodrigo
Russell Weetch
stukelly
vibeeshanRC
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)