Skip to content

Add support for async callbacks#19

Open
nrensen wants to merge 1 commit into
YannVasseur35:mainfrom
nrensen:AsyncCallback
Open

Add support for async callbacks#19
nrensen wants to merge 1 commit into
YannVasseur35:mainfrom
nrensen:AsyncCallback

Conversation

@nrensen
Copy link
Copy Markdown

@nrensen nrensen commented Jul 28, 2025

There are scenarios where it is necessary to have an async callback, such as to call an API from Blazor WASM.
The javascript interop and C# wrapper were already set up for async code paths, all that is required is supporting async call backs.
I have achieved this in a way that retains backwards compatibility with the existing sync callbacks by adding overloads for Init() and wrapping the sync callbacks as async.

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

Successfully merging this pull request may close these issues.

1 participant