Attribute Macro fuchsia_async::run_until_stalled

Expand description

Define an async function that should complete without stalling.

If the async function should stall then a panic will be raised. For example:

async fn this_will_fail_and_not_block() -> Result<(), anyhow::Error> {
    let () = future::empty().await;

will cause an immediate panic instead of hanging.

This is mainly intended for testing, and takes an optional test argument.

async fn test_foo() {}