reload(fromOrigin:)
Reloads the current webpage.
Declaration
@discardableResult @MainActor final func reload(fromOrigin: Bool = false) -> some AsyncSequence<WebPage.NavigationEvent, any Error>
Parameters
- fromOrigin:
If
true, end-to-end revalidation of the content using cache-validating conditionals is performed, if possible.
Return Value
An async sequence you use to track the loading progress of the navigation. If the Task enclosing the sequence is cancelled, the page will stop loading all resources.