PackageDescription: ShiffmanTimeout


Shiffman Timeout

Last published: January 11, 2005 by 'andreis'

Defines 1 Classes
Extends 1 Classes


From Squeak3.8alpha of 8 September 2004 [latest update: #6297] on 22 October 2004 at 12:04:32 pm
Change Set: shiffmanTimeout-brp
Date: 21 October 2004
Author: Brent Pinkney

Implementation of #valueWithin:onTimeout:.
This changeset reimplements Allan Schiffman's timeout mechanism for Squeak 3.8.
Usage:
[ 50000 factorial ] valueWithin: 1 second onTimeout: [ 666 ]. ""Answers 666""
[ 3 + 4 ] valueWithin: 1 second onTimeout: [ 666 ]. ""Answers 7""

Allan's implementation has been reworked to satisfy ANSI exception handling and the Duration class in the Chronology package.