hundreds-father-404
04/20/2021, 7:45 PMExecutor::spawn_blocking()
takes a F: FnOnce() -> R
, whereas block_on()
and spawn()
take a Future
. Do you know why spawn_blocking
doesn't take a Future?hundreds-father-404
04/20/2021, 7:45 PMhundreds-father-404
04/20/2021, 7:46 PMaverage-vr-56795
04/20/2021, 9:58 PM