I would like to show a progress bar while the application is loading/initializing.
This code doesn't work, but should give you an idea of what I'm trying to accomplish.
my Bool $done-compiling = False;
BEGIN {
start repeat {
print '*';
sleep 0.33;
} until $done-compiling;
};
INIT {
$done-compiling = True;
};
Is there an event triggered that I could respond to in the BEGIN block?