This repository was archived by the owner on Feb 4, 2026. It is now read-only.
Repository navigation
Azor implements JavaScript-style promises and async/await in Go. Make sure you don't use them.
calc := func() int { return 42 }
fn := azor.Async(func() (int, error) {
return calc(), nil
})
ctx := context.Background()
n, err := azor.Await(ctx, fn())
fmt.Println(n, err)
// Output:
// 42 <nil>