Skip to content
New issue

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

Feature request: Script.stateful #460

Open
miniBill opened this issue Mar 30, 2024 · 1 comment
Open

Feature request: Script.stateful #460

miniBill opened this issue Mar 30, 2024 · 1 comment

Comments

@miniBill
Copy link
Contributor

While it is already possible to write a function like

loop : (state -> BackendTask error (Loop state result)) -> state -> BackendTask error result

the resulting code leaks memory.

It would be nice to have a stateful version of Script, probably with an API similar to loop above.

@miniBill
Copy link
Contributor Author

(Being worked on in #471)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant