pub fn await(f: *@This(), io: Io) Result f: *@This()io: Io1313
1314
1315
1316
1317
1318 pub fn await(f: *@This(), io: Io) Result {
const any_future = f.any_future orelse return f.result;
io.vtable.await(io.userdata, any_future, @ptrCast(&f.result), .of(Result));
f.any_future = null;
return f.result;
}
Idempotent. Not threadsafe.