2 ms·
`block_on` does not block the calling thread: it runs the closure on a separate thread-pool based executor designed for CPU-bound tasks. The calling thread imm
by Diggsey 6y ago
`block_on` does not block the calling thread: it runs the closure on a separate thread-pool based executor designed for CPU-bound tasks.
The calling thread immediately yields until the blocking work task completes and wakes it up again.