CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
4
Task/Concurrent-computing/E/concurrent-computing-1.e
Normal file
4
Task/Concurrent-computing/E/concurrent-computing-1.e
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
def base := timer.now()
|
||||
for string in ["Enjoy", "Rosetta", "Code"] {
|
||||
timer <- whenPast(base + entropy.nextInt(1000), fn { println(string) })
|
||||
}
|
||||
9
Task/Concurrent-computing/E/concurrent-computing-2.e
Normal file
9
Task/Concurrent-computing/E/concurrent-computing-2.e
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
def seedVat := <import:org.erights.e.elang.interp.seedVatAuthor>(<unsafe>)
|
||||
for string in ["Enjoy", "Rosetta", "Code"] {
|
||||
seedVat <- (`
|
||||
fn string {
|
||||
println(string)
|
||||
currentVat <- orderlyShutdown("done")
|
||||
}
|
||||
`) <- get(0) <- (string)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue