summaryrefslogtreecommitdiff
path: root/exercises/087_async4.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-03 19:32:53 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-03 19:32:53 +0200
commit5307b2a338a92130bc498fb1dc7d21a9fd1b0db4 (patch)
tree51279ca4fbd7bd90294dd563640c12a8c25c79c6 /exercises/087_async4.zig
parent3056a2b5442f2f1ec58db3f3493109064ad2a2a5 (diff)
parentf6a6798c8b6b813bd2ceee81db276e05327a76e0 (diff)
Merge pull request 'revival of the async-io functions' (#383) from asyncIo into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/383
Diffstat (limited to 'exercises/087_async4.zig')
-rw-r--r--exercises/087_async4.zig30
1 files changed, 0 insertions, 30 deletions
diff --git a/exercises/087_async4.zig b/exercises/087_async4.zig
deleted file mode 100644
index bb9c9ec..0000000
--- a/exercises/087_async4.zig
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// It has probably not escaped your attention that we are no
-// longer capturing a return value from foo() because the 'async'
-// keyword returns the frame instead.
-//
-// One way to solve this is to use a global variable.
-//
-// See if you can make this program print "1 2 3 4 5".
-//
-const print = @import("std").debug.print;
-
-var global_counter: i32 = 0;
-
-pub fn main() void {
- var foo_frame = async foo();
-
- while (global_counter <= 5) {
- print("{} ", .{global_counter});
- ???
- }
-
- print("\n", .{});
-}
-
-fn foo() void {
- while (true) {
- ???
- ???
- }
-}