Panic stops: An example
| task |task := [10 timesRepeat:[Delay forSeconds: 1) wait.Transcript show: 'A']] newProcess.task priority: AHeristicValuetask resume.(Delay forSeconds: 3) wait.task interruptWith: [NotifierView openContext: thisContextlabel: 'Stop look listen'proceedable: true].
| Previous slide | Next slide | Back to first slide | View graphic version |
Notes:
Say the application is churning along. It's broken but you don't know why... and it's holding say 400 transactions. What to do? Let's just look around first before we panic...
Code like above allowed us to halt everything and do a post-mortem. In practice weíve never had to use it, but you never know...