Comment

Comment by littlestymaar

Async code is not incompatible with blocking one, in Rust it's quite straightforward to make the two interoperate: calling a blocking code from async is donne with spawn_blocking and the reverse (async from blocking code) is done with block_on.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton