Skip to content

aio: custom operations #83

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

Open
Cloudef opened this issue Feb 11, 2025 · 1 comment
Open

aio: custom operations #83

Cloudef opened this issue Feb 11, 2025 · 1 comment

Comments

@Cloudef
Copy link
Owner

Cloudef commented Feb 11, 2025

It might be possible to provide custom operations from outside, and for aio itself to implement backend agnostic complex operations as well.

In theory all this needs is a struct that provides aio.EventSource and a method to check if it's complete or not. In theory this could be used to implement http_fetch and such, the custom op itself could use aio.Dynamic to implement it asynchronously.

@Cloudef
Copy link
Owner Author

Cloudef commented Feb 11, 2025

I feel like there should be stage1 aio, and then stage2 aio, where stage2 uses stage1 to implement more complex ops.

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

No branches or pull requests

1 participant