async-recursion 1.1.1

Recursion for async functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use async_recursion::async_recursion;
#[must_use]
fn contains_value_2<'a, 'b, 'async_recursion, T: PartialEq>(
    value: &'b T,
    node: &'b Node<'a, T>,
) -> ::core::pin::Pin<Box<dyn ::core::future::Future<Output = bool> + 'async_recursion>>
where
    T: 'async_recursion,
    'b: 'async_recursion,
{
    Box::pin(async move { contains_value(value, node).await })
}