Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public function becomes private with scheduler macro #1944

Closed
tekjar opened this issue Dec 11, 2019 · 1 comment · Fixed by #1954
Closed

Public function becomes private with scheduler macro #1944

tekjar opened this issue Dec 11, 2019 · 1 comment · Fixed by #1954

Comments

@tekjar
Copy link
Contributor

tekjar commented Dec 11, 2019

cargo tree | grep tokio
___ tokio v0.2.4
___ tokio-macros v0.2.0

Description

Public function becomes private with scheduler macro


mod a {
    #[tokio::main(basic_scheduler)]
    pub async fn hello() {
        println!("hello world");
    }
}

fn main() {
    a::hello();
}
@DoumanAsh
Copy link
Contributor

@carllerche I think we can releaes bug fix version with this fix? I doubt there will be many changes in future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants