Skip to content

Request for Extra Example: Using Async #23

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
rationalis-petra opened this issue Jun 26, 2023 · 2 comments
Open

Request for Extra Example: Using Async #23

rationalis-petra opened this issue Jun 26, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@rationalis-petra
Copy link

As it says in the title: could you please add an example for using Asynchronous programming. I'm particularly interested in using GAsyncReadyCallback as it's required as an input to some functions (like the file dialogs).

Thanks!

@bohonghuang bohonghuang added the documentation Improvements or additions to documentation label Jun 26, 2023
@rationalis-petra rationalis-petra changed the title Request for Extra Example: Using Request for Extra Example: Using Async Jun 26, 2023
@bohonghuang bohonghuang added the enhancement New feature or request label Jul 26, 2023
@rationalis-petra
Copy link
Author

Should I take the enhancement label to mean that this is currently not doable? Or is it possible but just bad/unergonomic?

@bohonghuang
Copy link
Owner

bohonghuang commented Oct 31, 2023

Should I take the enhancement label to mean that this is currently not doable? Or is it possible but just bad/unergonomic?

It's possible. In fact, I want to combine it with async/await (using the optimized cl-cont for CPS transformation), but I currently lack the time to delve into it. I have already developed cl-cont-optimizer and have added support for async/await to promise. If you're interested, you can take a look and see if it can be combined with GIO's event loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants