mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 15:59:59 +00:00
Merge pull request 'typo' (#394) from typo_async9 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/394
This commit is contained in:
@@ -46,7 +46,7 @@ pub fn main(init: std.process.Init) !void {
|
||||
var future = try io.???(compute, .{io});
|
||||
defer _ = future.cancel(io);
|
||||
|
||||
// Note: All breaks in this excercise (using sleep)
|
||||
// Note: All breaks in this exercise (using sleep)
|
||||
// are only necessary for a deterministic result.
|
||||
io.sleep(std.Io.Duration.fromMilliseconds(100), .awake) catch {};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--- exercises/093_async9.zig 2026-04-06 19:26:11.388025362 +0200
|
||||
+++ answers/093_async9.zig 2026-04-06 19:18:36.242931688 +0200
|
||||
--- exercises/093_async9.zig 2026-04-13 17:55:35.567204530 +0200
|
||||
+++ answers/093_async9.zig 2026-04-13 18:05:05.636355044 +0200
|
||||
@@ -43,7 +43,7 @@
|
||||
// Launch with a guaranteed separate unit of concurrency.
|
||||
// Which Io method guarantees this?
|
||||
@@ -8,4 +8,4 @@
|
||||
+ var future = try io.concurrent(compute, .{io});
|
||||
defer _ = future.cancel(io);
|
||||
|
||||
// Note: All breaks in this excercise (using sleep)
|
||||
// Note: All breaks in this exercise (using sleep)
|
||||
|
||||
Reference in New Issue
Block a user