logoalt Hacker News

messeyesterday at 4:19 PM1 replyview on HN

But you can't call it from synchronous rust. Zig is moving toward all sync code also using the Io interface.


Replies

tcfhgjyesterday at 5:39 PM

yes, you can:

    runtime.block_on(async { })
https://play.rust-lang.org/?version=stable&mode=debug&editio...
show 2 replies