Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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