Asynchronous Programming

Comprehensive guide to Async Programming in Linea

Async Functions (Preview)

Async support is preview-stage. Keep examples explicit and isolate async experiments from production-critical paths.

func fetch_text(url: str) -> string {
    return http::get(url)
}

// Preview usage pattern:
// var body = await fetch_text("https://example.com")

Recommended Today

For stable workflows, call synchronous wrappers and add retries/guards in regular functions.