E4149# Cannot call async function in this context. Async functions can only be called in async functions. Erroneous example# pub fn g(f : async () -> Unit) -> Unit { f() } Suggestion# You can change the containing function to an async function: pub async fn g(f : async () -> Unit) -> Unit { f() }