pub fn ty_is_future<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool
Checks if the given Ty is either an impl Future or async coroutine.
Ty
impl Future