mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
new async exercise
This commit is contained in:
15
build.zig
15
build.zig
@@ -1161,13 +1161,20 @@ const exercises = [_]Exercise{
|
||||
},
|
||||
.{
|
||||
.main_file = "092_async9.zig",
|
||||
.output = "",
|
||||
.skip = true,
|
||||
.output =
|
||||
\\Main thread continues...
|
||||
\\Computing on a separate thread!
|
||||
\\Main thread done waiting.
|
||||
\\Result: 123
|
||||
, // pay attention to the comma
|
||||
},
|
||||
.{
|
||||
.main_file = "093_async10.zig",
|
||||
.output = "",
|
||||
.skip = true,
|
||||
.output =
|
||||
\\Starting critical section...
|
||||
\\Critical section completed safely.
|
||||
\\Task result: All data saved.
|
||||
, // pay attention to the comma
|
||||
},
|
||||
.{
|
||||
.main_file = "094_async_quiz.zig",
|
||||
|
||||
Reference in New Issue
Block a user