--- a/Future.st Sun Feb 10 14:55:47 2019 +0100
+++ b/Future.st Tue Feb 12 20:29:18 2019 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
This is a Manchester Goodie protected by copyright.
These conditions are imposed on the whole Goodie, and on any significant
@@ -175,10 +177,11 @@
semaphore := Semaphore name:'Future'.
[
- [result := aBlock value] ensure:[semaphore signal. semaphore := nil.]
+ result := [aBlock value] ensure:[semaphore signal. semaphore := nil.]
] fork
"Modified: / 09-08-2017 / 11:54:19 / cg"
+ "Modified: / 12-02-2019 / 20:26:39 / Stefan Vogel"
!
block:aBlock value:aValue
@@ -188,12 +191,11 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock value:aValue
- ] ensure:[semaphore signal. semaphore := nil.]
+ result := [aBlock value:aValue] ensure:[semaphore signal. semaphore := nil.]
] fork
"Modified: / 09-08-2017 / 11:54:23 / cg"
+ "Modified: / 12-02-2019 / 20:27:03 / Stefan Vogel"
!
block:aBlock value:value1 value:value2
@@ -203,12 +205,13 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock value:value1 value:value2
+ result := [
+ aBlock value:value1 value:value2
] ensure:[semaphore signal. semaphore := nil.]
] fork
"Modified: / 09-08-2017 / 11:54:27 / cg"
+ "Modified: / 12-02-2019 / 20:27:20 / Stefan Vogel"
!
block:aBlock value:value1 value:value2 value:value3
@@ -218,12 +221,13 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock value:value1 value:value2 value:value3
+ result := [
+ aBlock value:value1 value:value2 value:value3
] ensure:[semaphore signal. semaphore := nil.]
] fork
"Modified: / 09-08-2017 / 11:54:31 / cg"
+ "Modified: / 12-02-2019 / 20:27:31 / Stefan Vogel"
!
block:aBlock valueWithArguments:anArray
@@ -233,12 +237,13 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock valueWithArguments:anArray
+ result := [
+ aBlock valueWithArguments:anArray
] ensure:[semaphore signal. semaphore := nil.]
] fork
"Modified: / 09-08-2017 / 11:54:34 / cg"
+ "Modified: / 12-02-2019 / 20:27:40 / Stefan Vogel"
!
priority:prio block: aBlock
@@ -248,11 +253,12 @@
semaphore := Semaphore name:'Future'.
[
- [result := aBlock value] ensure:[semaphore signal. semaphore := nil.]
+ result := [aBlock value] ensure:[semaphore signal. semaphore := nil.]
] forkAt:prio
"Created: / 04-10-2011 / 14:53:21 / cg"
"Modified: / 09-08-2017 / 11:54:38 / cg"
+ "Modified: / 12-02-2019 / 20:27:52 / Stefan Vogel"
!
priority:prio block: aBlock value: aValue
@@ -262,13 +268,14 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock value:aValue
+ result := [
+ aBlock value:aValue
] ensure:[semaphore signal. semaphore := nil.]
] forkAt:prio
"Created: / 04-10-2011 / 14:53:35 / cg"
"Modified: / 09-08-2017 / 11:54:41 / cg"
+ "Modified: / 12-02-2019 / 20:28:02 / Stefan Vogel"
!
priority:prio block:aBlock value:value1 value:value2
@@ -278,13 +285,14 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock value:value1 value:value2
+ result := [
+ aBlock value:value1 value:value2
] ensure:[semaphore signal. semaphore := nil.]
] forkAt:prio
"Created: / 04-10-2011 / 14:54:03 / cg"
"Modified: / 09-08-2017 / 11:54:44 / cg"
+ "Modified: / 12-02-2019 / 20:28:10 / Stefan Vogel"
!
priority:prio block:aBlock value:value1 value:value2 value:value3
@@ -294,13 +302,14 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock value:value1 value:value2 value:value3
+ result := [
+ aBlock value:value1 value:value2 value:value3
] ensure:[semaphore signal. semaphore := nil.]
] forkAt:prio
"Created: / 04-10-2011 / 14:54:51 / cg"
"Modified: / 09-08-2017 / 11:54:47 / cg"
+ "Modified: / 12-02-2019 / 20:28:21 / Stefan Vogel"
!
priority:prio block:aBlock valueWithArguments:anArray
@@ -310,13 +319,14 @@
semaphore := Semaphore name:'Future'.
[
- [
- result := aBlock valueWithArguments:anArray
+ result := [
+ aBlock valueWithArguments:anArray
] ensure:[semaphore signal. semaphore := nil.]
] forkAt:prio
"Created: / 04-10-2011 / 14:55:14 / cg"
"Modified: / 09-08-2017 / 11:54:50 / cg"
+ "Modified: / 12-02-2019 / 20:28:30 / Stefan Vogel"
! !
!Future methodsFor:'printing'!