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

Asynchronous file dialogs #144

Open
btzy opened this issue Jul 11, 2024 · 0 comments
Open

Asynchronous file dialogs #144

btzy opened this issue Jul 11, 2024 · 0 comments

Comments

@btzy
Copy link
Owner

btzy commented Jul 11, 2024

It is perhaps time to revisit designing an asynchronous API.

Some considerations:

  • Do we want a callback-based API (e.g. like Cocoa's native API or a polling-based API (closer to GTK/Portal's native API)?
  • How can the user perform non-busy waiting?
  • Should this be built into a separate static/shared library (since very few applications will want to call both sync and async functions)?

Note 1: Asynchronous file dialogs are about calling an NFD API function that shows a file dialog window, but returns before the dialog is completed. It is not about multithreading or thread-safe API calls - you are still expected to call the async functions from the main thread.

Note 2: Even after this is merged, async support will be considered unstable for a while.

Related: #64

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