Progress Reporting


In [2]:
def messages = ["starting",
                "started",
                "begin",
                "middle",
                "about to finish"];

for ( int i = 0 ; i<5; i++) {
  beaker.showProgressUpdate(messages[i], i*20)
  sleep(1000)
}
sleep(1000)
"finished"


Out[2]:
finished

In [2]:
def messages = ["starting",
                "started",
                "begin",
                "middle",
                "about to finish"];

for ( int i = 0 ; i<5; i++) {
  beaker.showProgressUpdate(messages[i], i*20)
  sleep(150)
}
sleep(1000)
"finished"


Out[2]:
finished

In [ ]: