[go: up one dir, main page]

async-recursion 1.1.1

Recursion for async functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
use async_recursion::async_recursion;

#[async_recursion(Sync)]
async fn send_and_sync() {}

fn assert_is_send_and_sync(_: impl Send + Sync) {}

#[test]
fn test_sync_argument() {
    assert_is_send_and_sync(send_and_sync());
}