quickjs-rs icon indicating copy to clipboard operation
quickjs-rs copied to clipboard

Add interrupt handler callback support

Open osmarks opened this issue 2 years ago • 1 comments

QuickJS supports an "interrupt handler" to allow JS execution to be stopped in case of e.g. Ctrl+C or timeouts. I've added support for it to the API. The type constraints on it are probably stricter than they need to be but this was sufficient for my purposes.

osmarks avatar Apr 05 '23 14:04 osmarks

Needs a cargo fmt.

theduke avatar Apr 10 '23 06:04 theduke