Skip to content

combination of export + console breaks tokio sleep #46

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

Open
davidhewitt opened this issue May 28, 2025 · 1 comment · May be fixed by #52
Open

combination of export + console breaks tokio sleep #46

davidhewitt opened this issue May 28, 2025 · 1 comment · May be fixed by #52
Assignees

Comments

@davidhewitt
Copy link
Contributor

The following code hangs on the tokio sleep:

#[tokio::test]
async fn test_console_with_tokio_sleep() {
    // token is invalid, so exports will fail, but it was a necessary part of reproducing the issue
    let shutdown_handler = crate::configure()
        .with_token("abc123")
        .install_panic_handler()
        .finish()
        .unwrap();

    tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;

    shutdown_handler.shutdown().ok();
}
@davidhewitt
Copy link
Contributor Author

Possibly related, commenting out .with_console(None) in examples/basic.rs also causes a hang. 🤔

@friendlymatthew friendlymatthew self-assigned this May 29, 2025
@friendlymatthew friendlymatthew linked a pull request May 29, 2025 that will close this issue
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