Signal.st
branchjv
changeset 21024 8734987eb5c7
parent 20578 39641ba8d6e0
parent 20953 e84cf4c25b59
child 21088 6f4535127ce6
--- a/Signal.st	Wed Oct 26 23:35:39 2016 +0100
+++ b/Signal.st	Fri Nov 18 20:48:04 2016 +0000
@@ -42,7 +42,7 @@
 "
     Note:
         The instance based Signal framework is being replaced by class based exceptions.
-        I.e. what used to be instances of Signal/QuerySignal is beeing
+        I.e. what used to be instances of Signal/QuerySignal is being
         rewritten into subclasses of Exception/Error/Query and Warning.
 
         Although the functionality is basically unchanged, the new
@@ -850,25 +850,25 @@
 
      Deferring makes sense for some signals, such as UserInterrupt or AbortSignal,
      which must occasionally be delayed temporarily until a save place is reached
-     (especially when packages are sent across a communication channel, and you dont want
+     (especially when packages are sent across a communication channel, and you don't want
       partial packages to be generated by user interruptions)."
 
     |caughtException result|
 
     self handle:[:ex |
-	caughtException isNil ifTrue:[
-	    caughtException := ex.
-	].
-	ex proceedWith:nil
+        caughtException isNil ifTrue:[
+            caughtException := ex.
+        ].
+        ex proceedWith:nil
     ] do:[
-	result := aBlock value.
+        result := aBlock value.
     ].
     caughtException notNil ifTrue:[
-	caughtException suspendedContext:thisContext.
+        caughtException suspendedContext:thisContext.
 
-	"/ the signal was raised during the execution of aBlock above.
-	"/ Raise it now (delayed).
-	caughtException raiseSignal
+        "/ the signal was raised during the execution of aBlock above.
+        "/ Raise it now (delayed).
+        caughtException raiseSignal
     ].
     ^ result
 
@@ -877,7 +877,7 @@
 
       s := Signal new mayProceed:true.
       s deferAfter:[
-	 s raiseRequestWith:'hello' errorString:'eeee'
+         s raiseRequestWith:'hello' errorString:'eeee'
       ]
      "
 !