Contents

load(_:)

Navigates to an item from the back-forward list and sets it as the current item.

Declaration

@discardableResult @MainActor final func load(_ item: WebPage.BackForwardList.Item) -> some AsyncSequence<WebPage.NavigationEvent, any Error>

Parameters

  • item:

    The item to navigate to. The item must be in the webpage’s back-forward list.

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.

See Also

Loading web content