跳转到主要内容

Window: cancelIdleCallback() method

{{APIRef}}

The window.cancelIdleCallback() method cancels a callback previously scheduled with {{domxref("window.requestIdleCallback()")}}.

Syntax

cancelIdleCallback(handle)

Parameters

Return value

None ({{jsxref("undefined")}}undefined).

Examples

See our complete example in the article Cooperative Scheduling of Background Tasks API.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}