aboutsummaryrefslogtreecommitdiff
path: root/091_async8.zig
blob: 5f9e19b98454b11cde37f89bdaa3109442f1cef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// Perhaps you have been wondering why we have always called 'suspend'
// with an expression in the form of an empty block:
//
//     suspend {}
//
// well,
//
const print = @import("std").debug.print;

pub fn main() void {

    var my_beef = getBeef(0);

    print("beef? {X}!\n", .{my_beef});
}

fn getBeef(input: u32) u32 {
    suspend {}
}