This is an archived page. It's not actively maintained.

JS_CheckForInterrupt

This article covers features introduced in SpiderMonkey 45

Check for and handle interrupt.

Syntax

bool
JS_CheckForInterrupt(JSContext* cx);
Name Type Description
cx </code>JSContext *<code> The context.

Description

JS_CheckForInterrupt checks for the interrupt, and handle it if it's pending. JS_CheckForInterrupt returns false if interrupt callback returns false.

See Also