← Back to AILP Home

Async Functions

Declaration

async func:fetch_data = string(string:url) {
    // ... async operations
    pass data;
};

The async keyword marks a function as asynchronous. Async functions return Result<T> like all other functions.

Await

string:data = raw fetch_data("https://example.com");

Related