We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similar to how we track verb-to-verb calls, we should add metadata for lease usage:
verb myVerb(Empty) Empty +leases user/update
Currently lease keys are completely dynamic, so we might need to introduce some sort of registration/handle system as we do for other resources, eg.
var userUpdateLease = ftl.Lease("user", "update") //ftl:verb func MyVerb(ctx context.Context, user User) error { lease, err := userUpdateLease.Acquire(ctx, user.Id) if err != nil { return err } defer lease.Release() // ... }
Not sure.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Similar to how we track verb-to-verb calls, we should add metadata for lease usage:
Currently lease keys are completely dynamic, so we might need to introduce some sort of registration/handle system as we do for other resources, eg.
Not sure.
The text was updated successfully, but these errors were encountered: