>.</li></ul> <p>Exposed function returns a promise that is resolved to its result value. Exceptions are rejected and encapsulated inside a Javascript <code>Error</code> object. Stacktrace is available via <code>error.stack</code>. Functions are executed in separate threads and are not thread-safe.</p> <p><code>window.pywebview.api</code> is not guaranteed to be available on <code>window.onload</code>. Subscribe to <code>window.pywebviewready</code> instead to make sure that <code>window.pywebview.api</code>