Add clock-less delay overload - #354
Merged
Merged
Conversation
Add delay({ timeout, target }) which returns a unit suitable for sample target arrays.
Covers typing, runtime behavior, fork scope, and documentation.
sergeysova
force-pushed
the
feat/clock-less-delay
branch
from
March 18, 2026 19:46
686cbc1 to
f125472
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add delay({ timeout, target }) which returns a unit suitable for sample target arrays. Covers typing, runtime behavior, fork scope, and documentation.
Closes #285
Note
Medium Risk
Adds a new runtime code path and TypeScript overloads for
delaythat change dispatch behavior whensourceis omitted; risk is moderate due to potential overload/behavioral edge cases, though covered by new tests and typings.Overview
Adds a new
delay({ timeout, target })overload that creates and returns a triggerEvent, which when called schedules the providedtargetunit(s) after the resolved timeout (number/store/function).Updates
delay’s implementation to branch whensourceis omitted, introduces a dedicateddelayWithoutSourcepath, and adjusts typings/tests (including forked-scope behavior), plus documents the new overload insrc/delay/readme.md.Written by Cursor Bugbot for commit f125472. This will update automatically on new commits. Configure here.