Skip to main content

returns_future

Function returns_future 

Source
fn returns_future(tcx: TyCtxt<'_>, def_id: DefId) -> bool
Expand description

Whether calling def_id returns a future: an async fn, or a function or method returning impl Future, Pin<Box<dyn Future>> or a named future type. Like the macro, the driver reads verbs only on awaited calls: HashMap::insert and Serializer::append_pair are not I/O.