File: main.rs

package info (click to toggle)
rust-async-attributes 1.1.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 136 kB
  • sloc: makefile: 2; sh: 1
file content (9 lines) | stat: -rw-r--r-- 146 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
use async_std::task;

#[async_attributes::main]
async fn main() {
    task::spawn(async {
        println!("Hello, world!");
    })
    .await;
}