cancelPending

abstract fun cancelPending(browser: CefBrowser, handler: CefMessageRouterHandler)

Cancel all pending queries associated with either |browser| or |handler|. If both |browser| and |handler| are NULL all pending queries will be canceled. onQueryCanceled will be called and the associated JavaScript onFailure callback will be executed in all cases with an error code of -1.

Parameters

browser

The associated browser, or null.

handler

The associated handler, or null.