Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ScriptAPI): timeout & interval #5454

Open
wants to merge 5 commits into
base: nextgen
Choose a base branch
from

Conversation

MukjepScarlet
Copy link
Contributor

@MukjepScarlet MukjepScarlet commented Jan 26, 2025

Note: body of callback will be always executed on the main thread (render thread).
example:

const id = setTimeout(() => {
    Client.displayChatMessage("1111");
}, 5000);

clearTimeout(id);

Note: the Kotlin auto-generated FunctionN interfaces don't have @FunctionalInterface annotation, so it can't be cast by Polyglot.

@MukjepScarlet MukjepScarlet marked this pull request as ready for review January 26, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant