for theduke/quickjs-rs#4
i think i want to impl this a bit broader (basicly in all public methods of JSRealmAdapter) so you can allways recover from endless loops and such...
Also i want to reimpl timeouts for get_promise_result (which was removed because it was difficult to impl with Futures)