We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b6d11 commit 935c8f2Copy full SHA for 935c8f2
examples/stdlib/io/filesystem/async_file_io.effekt
@@ -1,6 +1,7 @@
1
import io
2
import io/error
3
import io/filesystem
4
+import io/promise
5
6
def program(path1: String, path2: String) = {
7
val f1 = promise(box {
examples/stdlib/io/time.effekt
@@ -1,18 +1,19 @@
import io/time
def main() = {
val p1 = promise(box {
8
println("Start p1");
- wait(250)
9
+ sleep(250)
10
println("Stop p1");
11
12
})
13
14
val p2 = promise(box {
15
println("Start p2");
- wait(150)
16
+ sleep(150)
17
println("Stop p2");
18
19
0 commit comments