Skip to content

v0.1.33

Compare
Choose a tag to compare
@zhuxiujia zhuxiujia released this 08 Feb 02:49
· 158 commits to main since this release

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);