pub fn is_async(tcx: TyCtxt<'_>, def_id: DefId) -> bool
An async check that does not crash if called on closures.