Created
December 28, 2018 21:22
-
-
Save edcrypt/f2ca65dc816dc731c6445e41e890a237 to your computer and use it in GitHub Desktop.
Show a progress bar based on an interval on Pharo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myColl := 1 to: 20. | |
[ :job | | |
myColl | |
do: [ :e | | |
job | |
progress: e / myColl size; | |
title: 'waiting ' , e asString. | |
(Delay forSeconds: 0.5) wait ] ] asJob run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment