tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
25.44k stars 2.3k forks source link

Improvement for #[tokio::main] #6640

Closed Jedsek closed 3 weeks ago

Jedsek commented 3 weeks ago

related issue: #6639

Support for making functions whose names are not main to be [tokio::main] ed.

Jedsek commented 3 weeks ago

Oh, I found that #[tokio::main] could be applied to any function, and what I want is entry-point), so, close this pr