"Workspace Do it. File in the lesson source first. Stage 7: Restart after cancellation." | lab wait | lab := LQBackgroundLab open. lab stage: 7. wait := [| deadline | deadline := Time millisecondClockValue + 3000. [lab worker notNil and: [Time millisecondClockValue < deadline]] whileTrue: [(Delay forMilliseconds: 2) wait]. lab worker notNil ifTrue: [self error: 'Worker timeout']]. lab workSize: 100; delayMilliseconds: 10; start; requestCancel. wait value. lab workSize: 10; delayMilliseconds: 1; start. wait value. lab step. (lab state = #completed and: [lab result = 55]) ifFalse: [self error: 'Restart did not complete']. lab