v0.1.33
v0.1.33
- add spawn_blocking method Used to handle blocking operations, such as reading and writing files, and busy CPU calculations
for example:
let v = cogo::spawn_blocking!(|| {
return 1;
});
assert_eq!(v.unwrap(), 1);