Skip to content

Task-level postDelay is never read, though the JSDoc deprecates delay in its favour #51

Description

@Shinrai

Problem

The task-level JSDoc and type definitions mark delay as deprecated in favour of postDelay, but enqueue() only reads delay (and start) on a task. Following the documented API by passing postDelay on a task gives no delay at all. Priority- and coalescing-level config do use postDelay/startDelay, so the task level is the odd one out.

Found while rewriting the README examples (#50), which now tells users that delay/start are the current task-level names.

Fix

Make enqueue() accept postDelay / startDelay on tasks, keep delay / start as deprecated aliases with the same deprecation warning the other levels emit, and make the JSDoc, types and README agree. Add tests for both names.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreTouches core library / runtime source codepriority: highNeeds attention soon — not blocking, but don't let it sitstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions