Skip to content

Instantly share code, notes, and snippets.

@edcrypt
Created December 28, 2018 21:22
Show Gist options
  • Save edcrypt/f2ca65dc816dc731c6445e41e890a237 to your computer and use it in GitHub Desktop.
Save edcrypt/f2ca65dc816dc731c6445e41e890a237 to your computer and use it in GitHub Desktop.
Show a progress bar based on an interval on Pharo
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