File: args_sync.rs

package info (click to toggle)
rust-async-recursion 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 227 bytes parent folder | download
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());
}