Open joshtriplett opened 7 months ago
Yeah, we should definitely add an implementation for types implementing IntoFuture
; the only reason we don't have that already is historical: tracing::Instrument
predates IntoFuture
being stable in the standard library.
Right now, instrumenting a type that implements
IntoFuture
requires explicitly callinginto_future().instrument(...)
. I'd love to have an impl ofInstrument
for any type implementingIntoFuture
, to allow writing just.instrument(...)
.