[GR-53491] Consider adding support for Callback on closing event of polyglot Context object
Author: kwojcik-blocketherCreated Apr 17, 2024Updated Sep 24, 2026
Labelsfeaturetruffle
Feature request
When using PolyglotAPI one might want to patch setInterval/setTimeout via Java Executor Pool. In such cases when closing the Context I would like to handle clear interval and timeout signals and consume all remaining events.
This might be possible only by additional listener attached to Context and triggered upon "close".
I think this is very important for users who wrap already existing JS/Python libraries.
Source: oracle/graal