Tokio context switching for spawn vs spawn_blocking?

Kernel context switching always happens and is unrelated to .await points.

Tokio context switching happens only at .await points, but happens for both types of schedulers.

1 Like