Concurrency fix
parent
25c64c8ac7
commit
a21781e380
|
@ -270,11 +270,10 @@ TUPLE: future value processes ;
|
||||||
tuck set-future-value
|
tuck set-future-value
|
||||||
dup future-processes [ schedule-thread ] each
|
dup future-processes [ schedule-thread ] each
|
||||||
f swap set-future-processes ;
|
f swap set-future-processes ;
|
||||||
|
|
||||||
: future ( quot -- future )
|
: future ( quot -- future )
|
||||||
#! Spawn a process to call the quotation and immediately return.
|
#! Spawn a process to call the quotation and immediately return.
|
||||||
\ future construct-empty [
|
\ future construct-empty [
|
||||||
[
|
|
||||||
[
|
[
|
||||||
>r [ t 2array ] compose [ f 2array ] recover r>
|
>r [ t 2array ] compose [ f 2array ] recover r>
|
||||||
notify-future
|
notify-future
|
||||||
|
|
Loading…
Reference in New Issue