[−][src]Function tauri::execute_promise_sync
pub fn execute_promise_sync<R: Serialize, F: FnOnce() -> Result<R> + Send + 'static>(
webview: &mut Webview<'_>,
task: F,
callback: String,
error: String
) -> Result<()>
Synchronously executes the given task
and evaluates its Result to the JS promise described by the callback
and error
function names.