Skip to content

Conversation

axefrog
Copy link
Contributor

@axefrog axefrog commented Jun 5, 2017

The type definition Scheduler.delay(task) was incorrect. I updated it to Scheduler.delay(delay, task).

@@ -29,7 +29,7 @@ export interface ScheduledTask {
export interface Scheduler {
now(): number;
asap(task: Task): ScheduledTask;
delay(task: Task): ScheduledTask;
delay(delay: number, task: Task): ScheduledTask;
Copy link
Member

Choose a reason for hiding this comment

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

LGTM. Periodic below also needs a period: number param. Could you add that one as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, fixed.

@axefrog axefrog changed the title fix(type-definitions): Scheduler.delay() signature fix(type-definitions): Scheduler method signatures Jun 5, 2017
Copy link
Member

@briancavalier briancavalier left a comment

Choose a reason for hiding this comment

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

Thanks!

@briancavalier briancavalier merged commit 5349090 into cujojs:master Jun 6, 2017
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.

2 participants