Skip to content

Add send_after to JS runtime#3

Merged
sbergen merged 7 commits intomainfrom
SendAfter
Jul 23, 2025
Merged

Add send_after to JS runtime#3
sbergen merged 7 commits intomainfrom
SendAfter

Conversation

@sbergen
Copy link
Copy Markdown
Owner

@sbergen sbergen commented Jul 21, 2025

This allows using tasks instead of microtasks, for advanced scheduling needs, in addition to actual delays.

@sbergen sbergen changed the title Add send_after Add send_after to JS runtime Jul 21, 2025
/// Returns a monotonic timestamp in milliseconds.
/// The reference point (value 0) is not defined.
@external(javascript, "../../drift_event_loop.mjs", "now")
@internal
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an accident, need to revert it. (don't know what I was thinking yesterday)

@sbergen sbergen merged commit 89d54ea into main Jul 23, 2025
7 checks passed
@sbergen sbergen deleted the SendAfter branch July 23, 2025 16:49
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