Skip to content

Commit 935c8f2

Browse files
committed
Fix other tests
1 parent 02b6d11 commit 935c8f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/stdlib/io/filesystem/async_file_io.effekt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import io
22
import io/error
33
import io/filesystem
4+
import io/promise
45

56
def program(path1: String, path2: String) = {
67
val f1 = promise(box {

examples/stdlib/io/time.effekt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
import io
22
import io/time
3+
import io/promise
34

45
def main() = {
56

67
val p1 = promise(box {
78
println("Start p1");
8-
wait(250)
9+
sleep(250)
910
println("Stop p1");
1011
1
1112
})
1213

1314
val p2 = promise(box {
1415
println("Start p2");
15-
wait(150)
16+
sleep(150)
1617
println("Stop p2");
1718
2
1819
})

0 commit comments

Comments
 (0)