090_async7.patch 420 B

1234567891011
  1. --- exercises/090_async7.zig 2023-10-03 22:15:22.125574535 +0200
  2. +++ answers/090_async7.zig 2023-10-05 20:04:07.249437167 +0200
  3. @@ -29,7 +29,7 @@
  4. // The main() function can not be async. But we know
  5. // getBeef() will not suspend with this particular
  6. // invocation. Please make this okay:
  7. - var my_beef = getBeef(0);
  8. + var my_beef = nosuspend getBeef(0);
  9. print("beef? {X}!\n", .{my_beef});
  10. }