MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / RunAsync

Method RunAsync

SampleApps/WebView2APISample/AppWindow.cpp:2893–2897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2891}
2892
2893void AppWindow::RunAsync(std::function<void()> callback)
2894{
2895 auto* task = new std::function<void()>(std::move(callback));
2896 PostMessage(m_mainWindow, s_runAsyncWindowMessage, reinterpret_cast<WPARAM>(task), 0);
2897}
2898
2899void AppWindow::AsyncMessageBox(std::wstring message, std::wstring title)
2900{

Calls

no outgoing calls

Tested by

no test coverage detected