https://pantsbuild.org/ logo
h

hundreds-father-404

04/20/2021, 7:45 PM
Executor::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?
cc @average-vr-56795 if you're still around
a

average-vr-56795

04/20/2021, 9:58 PM
Yeah, it's a thin little wrapper 🙂