fn.execute_promise_sync

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.